-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Intel Fortran + OpenMP doesn't work #5483
Comments
Calling any fortran experts to help debug or diagnose... |
I suspect that
Points to the compiler writing to some directory it doesn't have access to. But can't be sure without playing around with it / stracing / etc |
It's actually not specific to Fortran, but to the Intel compilers when OpenMP is used. I can reproduce the same error messages with a OpenMP C code compiled with icc/icx (I didn't test with C++ and icp/icpx, but it's very likely the same). |
You mentioned it might also be happening to c++ which I suddenly recalled testing it. The problem was mentioned here #2246 (comment) |
Adding C++ already has them added, but the linker seems to either ignore or not save the information When I run the I'm confused Strange things afoot |
Looks like it has been fixed with the 2024 version if the Intel compilers 2023: https://godbolt.org/z/W9x7WTEfM |
Describe the bug
OpenMP is not working with Intel ifort/ifx compilers (Fortran) starting from version 2021.2.0. The execution always results in the following error:
Note that the Intel C compilers (icc/icx) have the same issue)
Steps to reproduce
Write any Fortran program with some OpenMP, can be just:
Compile/execute it with ifort or ifx, with the
fopenmp
optionExpected behavior
The output should print twice the "Hello World!" string
Reproduction link
https://godbolt.org/z/W9x7WTEfM
Screenshots
Not applicable
Operating System
No response
Browser version
Firefox 115.2.1esr (macOS x86)
The text was updated successfully, but these errors were encountered: