Closed rhager closed 3 years ago
What CMake version are you using?
v 3.11.4
That was it. I tried v3.18 and it worked.
That was premature. The configure stage worked. Now I get compiler errors:
[rhager@traverse8 cabana_build]$ make
Scanning dependencies of target cabanacore
[ 50%] Building CXX object core/src/CMakeFiles/cabanacore.dir/impl/Cabana_Version.cpp.o
pgc++-Error-Unknown switch: --relocatable-device-code=true
pgc++-Error-Unknown switch: -Wext-lambda-captures-this
pgc++-Error-Unknown switch: -arch=sm_72
make[2]: *** [core/src/CMakeFiles/cabanacore.dir/build.make:82: core/src/CMakeFiles/cabanacore.dir/impl/Cabana_Version.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:243: core/src/CMakeFiles/cabanacore.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Ok, my mistake again. I forgot to set the compiler to nvcc_wrapper
. Everything works now. Thanks!
@sslattery @dalg24 I guess the conclusion from this issue is that we should raise the required CMake version (at least for PGI).
Agreed - any reason we can't always go higher?
I'd say no. This is a slippery slope towards requiring the latest CMake in case someone want to use some new version of a compiler. I think it is the user's responsibility to use a CMake version compatible with his compiler/toolbox.
I'd say no. This is a slippery slope towards requiring the latest CMake in case someone want to use some new version of a compiler. I think it is the user's responsibility to use a CMake version compatible with his compiler/toolbox.
:+1:
I ran into a problem with Cabana and PGI version 20.4. I use the Cabana tag 0.3.0 with Kokkos branch https://github.com/masterleinad/kokkos/tree/fix_host_compiler_pgi_2 (which resolves the problems I had with the Kokkos tag 3.1.00). This is my configuration in
ccmake
:The configuration then fails with the following error:
Let me know if you need me to post any of the CMake log files.
(Tagging @ascheinb)