-
Notifications
You must be signed in to change notification settings - Fork 802
Description
While building for the CUDA backend, I was seeing some strange warning and errors as shown below but however leading to a cleaner installation.
warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
error: unknown argument: '-fno-lifetime-dse'Using CUDA-11.4.4/11.8.0, gcc-11.2.0, OS SLSE 15.3,
Towards the very end when generating the bc files for spirv
For instance
warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
warning: <unknown>:0:0: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
[ 97%] Built target opt.libspirv-nvptx64--nvidiacl.bc
[ 97%] Generating ../../lib/clc/libspirv-nvptx64--nvidiacl.bc
[ 97%] Built target prepare-libspirv-nvptx64--nvidiacl.bc
[ 97%] Generating ../../lib/clc/libclc_dummy_in.cc
[ 97%] Generating ../../lib/clc/libclc_dummy_in.cc
[ 97%] Generating ../../lib/clc/libclc_dummy_in.cc
[ 97%] Generating ../../lib/clc/libclc_dummy_in.cc
[ 97%] Generating ../../lib/clc/remangled-l64-unsigned_char.libspirv-nvptx64-nvidia-cuda.bc
[ 97%] Generating ../../lib/clc/remangled-l32-unsigned_char.libspirv-nvptx64-nvidia-cuda.bc
[ 97%] Generating ../../lib/clc/remangled-l32-signed_char.libspirv-nvptx64-nvidia-cuda.bc
[ 97%] Generating ../../lib/clc/remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc
error: unknown argument: '-fno-lifetime-dse'
error: unknown argument: '-fno-lifetime-dse'
error: unknown argument: '-fno-lifetime-dse'
error: unknown argument: '-fno-lifetime-dse'Upon compiling a test with the above built compilers leads to following errors:
.../bin/llvm-link: /soft/compilers/oneapi/llvm/build/lib/clang/17/../../clc/remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc: error: Opaque pointers are only supported in -opaque-pointers mode (Producer: 'LLVM17.0.0git' Reader: 'LLVM 17.0.0git')
/soft/compilers/oneapi/llvm/build/bin/llvm-link: error: loading file '/soft/compilers/oneapi/llvm/build/lib/clang/17/../../clc/remangled-l64-signed_char.libspirv-nvptx64-nvidia-cuda.bc'
clang++: error: sycl-link command failed with exit code 1 (use -v to see invocation)