https://github.com/malisha4065/openmpwithfortran
OpenMP parallel programming with modern Fortran
https://github.com/malisha4065/openmpwithfortran
fortran fortran90 openmp openmp-parallelization
Last synced: 22 days ago
JSON representation
OpenMP parallel programming with modern Fortran
- Host: GitHub
- URL: https://github.com/malisha4065/openmpwithfortran
- Owner: Malisha4065
- License: mit
- Created: 2025-03-07T11:20:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T11:38:59.000Z (11 months ago)
- Last Synced: 2025-04-14T03:38:34.226Z (10 months ago)
- Topics: fortran, fortran90, openmp, openmp-parallelization
- Language: Fortran
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenMPwithFortran
This project demonstrates the use of OpenMP with Fortran to parallelize code execution.
## Files
- **f1_hello.f90**: A simple program that demonstrates the use of OpenMP to print a message from multiple threads. Each thread prints its own thread ID.
- **f2_criticalregion.f90**: A program that demonstrates the use of OpenMP to perform parallel computation with a critical region to ensure correct summation.
## Compilation and Execution
To compile the Fortran programs with OpenMP support, use the following commands: (Using gfortran compiler)
```sh
gfortran -fopenmp -o helloopenmp f1_hello.f90
./helloopenmp
```