Index: libomptarget/deviceRTLs/nvptx/CMakeLists.txt =================================================================== --- libomptarget/deviceRTLs/nvptx/CMakeLists.txt +++ libomptarget/deviceRTLs/nvptx/CMakeLists.txt @@ -145,6 +145,7 @@ # no other compiler capable of generating bitcode from cuda sources. set(CUDA_FLAGS -emit-llvm + -fcuda-rdc -O1 -Xclang -target-feature -Xclang +${CUDA_PTX_VERSION}