Skip to content

Conversation

traversaro
Copy link

Motivation

When the ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW variable is specified, the install location of bytecode changes, but this change is not reflected in the AMDDeviceLibsConfig.cmake file, that still points to the default install location. This PR fixes this by respecting the ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW when generating the AMDDeviceLibsConfig.cmake file.

Technical Details

The Packages.cmake was redefining a install_path_suffix variable with the hardcoded install value, but a similar variable INSTALL_ROOT_SUFFIX (that respects ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW was already defined in OCL.cmake, so as OCL is included before Packages, we can just get rid of install_path_suffix and use INSTALL_ROOT_SUFFIX .

This removes the need for patches or workarounds used in downstream packaging, see:

Test Plan

I configured the amd/device-libs folder in standalone mode, and specified a custom install location with ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW, and I verified manually that AMDDeviceLibsConfig.cmake was correctly updated.

Test Result

See Test Plan.

Submission Checklist

@lamb-j lamb-j added the External Issue reported by community user label Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Issue reported by community user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants