-
Notifications
You must be signed in to change notification settings - Fork 407
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
PGI compiler being passed the gcc -fopenmp flag #3125
Comments
No, it's not your fault. The current logic is kokkos/cmake/kokkos_enable_devices.cmake Lines 46 to 54 in 9cd19f1
Since the compiler id is NVIDIA (I guess you are using nvcc_wrapper ) we use -Xcompiler -fopenmp instead of -Xcompiler KOKKOS_HOST_OPENMP_FLAG with a KOKKOS_HOST_OPENMP_FLAG to be implemented.
|
@zackgalbreath Can you check if #3127 works for you? |
Thanks for the quick fix! I can confirm that this works for us on summit |
@masterleinad @zackgalbreath I'm trying to compile with this fix using the
Any ideas? |
I'm guessing |
@ascheinb Can you check if you can compile successfully with kokkos/cmake/kokkos_test_cxx_std.cmake Lines 32 to 34 in 0970579
It probably only makes sense to have this check for gcc and clang . Still, I am not quite sure if -A causes some other problems.
|
When I commented out the check, I got a ton of these sorts of errors:
as if it's not recognizing the c++11 flag... |
Hmm... Do you know if you also had these problems with previous The Can you give us the full compile line ( |
@masterleinad Yes, #3239 (checked out this morning) does work for me when I tried it on summit with PGI 19.10. |
We are running into the following error when attempting to build kokkos (953d796) on summit:
i.e. it's using the gcc flag, not the PGI one.
Here are the modules we're using:
And we are the CMake configuration variables we're using:
Please let us know if we're doing something wrong.
@ascheinb
The text was updated successfully, but these errors were encountered: