[Openmp-dev] Link time error; with -fopenmp-targets=nvptx64

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Wed May 26 17:43:05 PDT 2021

This trivial code:
int main() {}

does not compile if I add the -fopenmp-targets=nvptx64 like below:

$ clang++ -fopenmp -fopenmp-targets=nvptx64 test.cpp
clang-13: warning: Unknown CUDA version. version.txt: 11.0.228.
Assuming the latest supported version 10.1 [-Wunknown-cuda-version]
undefined reference to `std::_Sp_make_shared_tag::_S_eq(std::type_info
clang-13: error: linker command failed with exit code 1 (use -v to see

I am on the latest main.

More information about the Openmp-dev mailing list