Skip to content

Clearer error message for missing libspirv library in CUDA and ROCm targets #4370

Closed
@steffenlarsen

Description

@steffenlarsen

#4207 changed the CUDA and ROCm backends to use remangled versions of libspirv-nvptx64--nvidiacl.bc and libspirv-amdgcn--amdhsa.bc respectively. Additionally, with #4345 the libclc variant used by the CUDA backend is system specific. However, if the libclc variants are not found, the resulting error message still reads:

cannot find 'libspirv-nvptx64--nvidiacl.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv

This does not convey the change in used libclc bitcode files. Note that the ROCm backend currently uses the exact same error message as stated above, despite using a remangled variant of libspirv-amdgcn--amdhsa.bc.

The error messages should reflect that it is looking for remangled variants of the libclc bitcode files, preferably specifying the exact name of the file it was unable to find.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cudaCUDA back-endenhancementNew feature or requesthipIssues related to execution on HIP backend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions