# OpenMP code implementation in gfortran and intel

**URL:** <https://fortran-lang.discourse.group/t/openmp-code-implementation-in-gfortran-and-intel/8256>\
**Category:** Help\
**Created:** [June 25, 2024, 7:51am UTC](https://fortran-lang.discourse.group/t/openmp-code-implementation-in-gfortran-and-intel/8256 "2024-06-25T07:51:11Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![PierU](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/pieru/32/1848_2.png) [@PierU](https://fortran-lang.discourse.group/u/PierU)\
**Post date:** [June 26, 2024, 8:50am UTC](https://fortran-lang.discourse.group/t/openmp-code-implementation-in-gfortran-and-intel/8256/12 "2024-06-26T08:50:14Z")

</div>

> [@Shahid](#):
>
> So it seems like the code was run in parallel with intel compiler but did not catch any race condition with OpenMP.

Please double check or triple check your tests… I have compiled and run your code with ifort 21 on Linux, and with OpenMP I do not have at all the same results with theta, phi\_old and m declared private or not. As expected…

---

_[View the full topic](https://fortran-lang.discourse.group/t/openmp-code-implementation-in-gfortran-and-intel/8256)._
