Description
Issue (ptxas error) observed while building sample application(after dpct migration)
In this case :
During compilation phase object file TestFluxBC.cpp.dp.o is generated then ,during linking phase :
command :
dpcpp_compiler/bin/clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda -o TestFluxBC tests/TestFluxBC.cpp.dp.o liblbpm-wia.a -L/usr/lib/x86_64-linux-gnu/openmpi/lib -lmpi_cxx -lmpi
Error Reported:
ptxas fatal : Unresolved extern function '_Z18__spirv_AtomicLoadPKxN5__spv5Scope4FlagENS_19MemorySemanticsMask4FlagE'
llvm-foreach:
ptxas fatal : Unresolved extern function '_Z18__spirv_AtomicLoadPKxN5__spv5Scope4FlagENS_19MemorySemanticsMask4FlagE'
llvm-foreach:
clang++: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 16.0.0 (/netbatch/donb3373736_00/runDir/jenkins-dir/workspace/Tools_SH/SYCLOS_Nightly/RHEL/llvm.src/clang 2359d94)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: sycl_nightly_20221203/dpcpp_compiler/bin
clang++: note: diagnostic msg: Error generating preprocessed source(s).
Function :
c++filt '_Z18__spirv_AtomicLoadPKxN5__spv5Scope4FlagENS_19MemorySemanticsMask4FlagE'
__spirv_AtomicLoad(long long const*, __spv::Scope::Flag, long long const::MemorySemanticsMask::Flag)
- OS: Linux(Ubuntu)
- DPC++ version: 16.0.0(2359d94)
- Dependencies : openmpi
Will try to check on the reproducer steps(as lots of steps prerequisite) .Want to check if this is some known issue .