Skip to content

[Issue]: accepted options for --cxx-compiler are too narrow #2112

@IMbackK

Description

@IMbackK

Problem Description

Since ROCm/rocBLAS@e884992 rocblas will pass its CMAKE_CXX_COMPILER to tensile via --cxx-compiler unfortionatly tensile is way to strict with this, causing issues. building rocblas -DCMAKE_CXX_COMPILER=/opt/rocm/bin/amdclang++ is perfectly valid, however tensile will not accept this bailing with:

TensileCreateLibrary: error: argument --cxx-compiler: invalid choice: '/opt/rocm/bin/amdclang++' (choose from amdclang++, hipcc)

This is due to

choices=[ToolchainDefaults.CXX_COMPILER, "hipcc"],
please remove the choices array here. If desired you can instead check that the path to the given compiler ends with hipcc or amdclang++ but really imo this should only be a warning or something the user can override anyways since there is no reason tensile objects could not be compiled with upstream llvm too. There might also be distro specific reasons for the compiler binary to be renamed.

Operating System

arch

CPU

Any Build issue

GPU

Any Build issue

ROCm Version

Tensile at 80dd256 rocblas at 2ba9a12d62d3de877c75cbd8dff73c50d54b6a98

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions