-
Notifications
You must be signed in to change notification settings - Fork 74
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
Compilation failure with icpx 2024.0.1 and OpenMP backend #2205
Compilation failure with icpx 2024.0.1 and OpenMP backend #2205
Comments
@bernhardmgruber Do you changed something else in alpaka to get ipcx start to compile OpenMP code? My short test to reproduce the issue in the CI in #2209 provides the following error
|
@psychocoderHPC, nothing else should be needed. I just retried it locally and it shows the same error, starting with a clean build directory and using the command I provided. Your CI shows the following however:
Maybe this is related. |
I tried to change it back to the implementation we used in the past which is compatible with old OpenMP 3.1+ Standard # pragma omp atomic capture compare
{
old = ref;
ref = (value < ref) ? value : ref;
} But even then the compiler is complaining. There is also a clang fix available which introduced this error message: https://reviews.llvm.org/D102449 |
I also think our implementation is correct. Clang 17 compiles it correctly. Here is a reproducer using the alpaka single-header: https://godbolt.org/z/vdnfaE48E |
for min/max this works # pragma omp atomic capture compare
{
old = ref;
if(value > ref)
{ref = value;}
} |
looks like icpx requires |
fix alpaka-group#2205 The compiler requires that the atomics are written in a very spezific syntax else the code is not compiling.
fix alpaka-group#2205 The compiler requires that the atomics are written in a very specific syntax else the code is not compiling.
fix #2205 The compiler requires that the atomics are written in a very specific syntax else the code is not compiling.
alpaka 1.0 and also the develop branch fail to compile with icpx 2024.0.1 when the OpenMP backend is turned on:
Error:
The text was updated successfully, but these errors were encountered: