Giter VIP home page Giter VIP logo

parallel-programing's Introduction

openmp

💻 Parallel Programing with OpenMP 💻

Some parallel programing implementations using OpenMP + Docker + Docker Compose

Open Source GitHub Contributors GitHub Language Count GitHub Top Language GitHub Stars GitHub Last Commit Repository Size Repository Issues MIT License

How to contribute   |    License

▶️ Getting Started

To use this repository you need to make a git clone:

git clone --depth 1 https://github.com/lpmatos/parallel-programing.git -b master

Pull requests are welcome. If you'd like to support the work and buy me a ☕, I greatly appreciate it!

Buy Me A Coffee

OpenMP Functions

Para execução do Ambiente

Name Description
omp_set_num_threads Define o número de threadhs em regiões paralelas futuras a menos que seja substituído pela cláusula num_threads
omp_get_num_threads Retorna o número de threads dentro da região paralela
omp_get_thread_num Retorna o ID da thread em execução.
omp_get_num_procs Retorna o número de processadores disponível no momento em que a função é chamada.

Para rotinas de tempo

Name Description
omp_get_wtime Retorna um valor em segundos do tempo decorrido de algum ponto
omp_get_wtick Retorna o número de segundos entre os clocks do processador

🐋 Development with Docker

Steps to build a Docker Image.

Build

docker image build -t <IMAGE_NAME> -f <PATH_DOCKERFILE> <PATH_CONTEXT_DOCKERFILE>
docker image build -t <IMAGE_NAME> . (This context)

Run

Steps to run a Docker Container.

  • Linux running:
docker container run -d -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
docker container run -it --rm --name <CONTAINER_NAME> -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
  • Windows running:
winpty docker.exe container run -it --rm <IMAGE_NAME> <COMMAND>

For more information, access the Docker documentation or this.

🐋 Development with Docker Compose

Build and run a docker-compose.

docker-compose up --build

Down all services deployed by docker-compose.

docker-compose down

Down all services and delete all images.

docker-compose down --rmi all

Link Reference

➤ Author

👤 Hey!! If you like this project or if you find some bugs feel free to contact me in my channels:

➤ Versioning

To check the change history, please access the CHANGELOG.md file.

➤ Project status

This repository is a study project, therefore, it will not always be maintained 👻.

➤ Donations

BTC Address Litecoin Address

➤ Show your support

Give me a ⭐️ if this project helped you!

gif-header

Made with 💜 by me 👋 inspired on readme-md-generator

parallel-programing's People

Contributors

lpsm-dev avatar

Watchers

 avatar  avatar

Forkers

anjaliakg17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.