Using Clang (clang-12 and clang-13 confirmed) for target device Cuda with build type Debug fails with
[ 63%] Building CXX object tst/unit/CMakeFiles/unit_tests.dir/kokkos_abstraction.cpp.o
In file included from <built-in>:1:
In file included from /usr/lib/clang/13.0.0/include/__clang_cuda_runtime_wrapper.h:41:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/cmath:41:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/x86_64-pc-linux-gnu/bits/c++config.h:571:
In file included from /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:
/usr/include/features.h:397:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
1 warning generated when compiling for sm_86.
ptxas fatal : Cannot take address of function '__cxa_pure_virtual'
clang-13: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-13: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-13: note: diagnostic msg: /tmp/kokkos_abstraction-5ff6b9.cu
clang-13: note: diagnostic msg: /tmp/kokkos_abstraction-f6f273.cu
clang-13: note: diagnostic msg: /tmp/kokkos_abstraction-5ff6b9.sh
clang-13: note: diagnostic msg:
********************
make[2]: *** [tst/unit/CMakeFiles/unit_tests.dir/build.make:174: tst/unit/CMakeFiles/unit_tests.dir/kokkos_abstraction.cpp.o] Error 255
make[1]: *** [CMakeFiles/Makefile2:1537: tst/unit/CMakeFiles/unit_tests.dir/all] Error 2
Not sure what's going on and/or if this is even a bug on our end.
Using Clang (clang-12 and clang-13 confirmed) for target device Cuda with build type
Debug
fails withNot sure what's going on and/or if this is even a bug on our end.