Skip to content

[CUDA] Compilation error for Nvidia gpu, libspirv #7132

@lmontigny

Description

@lmontigny

I have the following error at compile time, using dpcpp compiler, cuda 11.5 and -fsycl -fsycl-targets=nvptx64-nvidia-cuda.
Nvidia hardware is V100 GPU.

dpcpp: warning: CUDA version is newer than the latest supported version 11.5 [-Wunknown-cuda-version]
dpcpp: error: cannot find 'remangled-l64-signed_char.libspirv-nvptx64--nvidiacl.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
make[2]: *** [constant/CMakeFiles/dpcpp_constant_cuda.dir/build.make:76: constant/CMakeFiles/dpcpp_constant_cuda.dir/constant_dpcpp_cuda.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:527: constant/CMakeFiles/dpcpp_constant_cuda.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
2 warnings generated.

dpcpp --version
Intel(R) oneAPI DPC++/C++ Compiler 2022.2.0 (2022.2.0.20220730)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2022.2.0/linux/bin-llvm

clang --version
clang version 16.0.0 (https://github.com/intel/llvm.git 4a67f2a)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /root/llvm/build/bin

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions