https://github.com/lpsm-dev/parallel-programing
📚 Some parallel programing implementations using OpenMP
https://github.com/lpsm-dev/parallel-programing
alpine c docker docker-compose openmp openmp-parallelization parallel-programming
Last synced: 12 months ago
JSON representation
📚 Some parallel programing implementations using OpenMP
- Host: GitHub
- URL: https://github.com/lpsm-dev/parallel-programing
- Owner: lpsm-dev
- License: mit
- Created: 2020-04-08T00:01:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:31:13.000Z (about 2 years ago)
- Last Synced: 2025-01-02T18:17:21.795Z (about 1 year ago)
- Topics: alpine, c, docker, docker-compose, openmp, openmp-parallelization, parallel-programming
- Language: C
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
💻 Parallel Programing with OpenMP 💻
Some parallel programing implementations using OpenMP + Docker + Docker Compose
## ▶️ Getting Started
To use this repository you need to make a **git clone**:
```bash
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!
## 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
```bash
docker image build -t -f
docker image build -t . (This context)
```
### Run
Steps to run a Docker Container.
* **Linux** running:
```bash
docker container run -d -p
docker container run -it --rm --name -p
```
* **Windows** running:
```
winpty docker.exe container run -it --rm
```
For more information, access the [Docker](https://docs.docker.com/) documentation or [this](docs/docker.md).
## 🐋 Development with Docker Compose
Build and run a docker-compose.
```bash
docker-compose up --build
```
Down all services deployed by docker-compose.
```bash
docker-compose down
```
Down all services and delete all images.
```bash
docker-compose down --rmi all
```
## Link Reference
* http://www.inf.ufsc.br/~bosco.sobral/ensino/ine5645/Exemplos-Diretivas-Clausulas.pdf
* https://docs.microsoft.com/en-us/cpp/parallel/openmp/reference/openmp-functions?view=vs-2019
👤 Hey!! If you like this project or if you find some bugs feel free to contact me in my channels:
>
> * Linktree: https://linktr.ee/lpmatos
>
To check the change history, please access the [**CHANGELOG.md**](CHANGELOG.md) file.
This repository is a study project, therefore, it will not always be maintained 👻.
Give me a ⭐️ if this project helped you!
Made with 💜 by [me](https://github.com/lpmatos) 👋 inspired on [readme-md-generator](https://github.com/kefranabg/readme-md-generator)
