Skip to content

[SYCL][CUDA] DPC++ build warning and error related to unrolling, optimization for CUDA plugin #9783

@abagusetty

Description

@abagusetty

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)

Metadata

Metadata

Assignees

No one assigned

    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