Skip to content

[SYCL][PI][HIP][CMake] Support non-standard ROCM installation paths #6091

@ajaypanyala

Description

@ajaypanyala

Is your feature request related to a problem? Please describe
The HIP build of the compiler fails in the configure step when ROCM is installed in a non-standard location especially when multiple rocm versions exist and are loaded via modules. The CMake infrastructure for the HIP plugins assumes it to always be in /opt/rocm as shown here and here

The configure step used is as follows:
CC=gcc CXX=g++ python ./buildbot/configure.py -w ./build_rocm --hip --hip-platform AMD -o ./

Describe the solution you would like
This is already supported in other places as shown here. Similar ROCM discovery logic needs to be added to the HIP plugins part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew 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