Skip to content

Commit ccb8a93

Browse files
WBobbyyanyao-wang
andauthored
Add amdgcn symlink to fix ROCm device library discovery (#3203)
## Motivation TheRock missing symlink amdgcn causes Multiple sub tests failures observed in AOMP-UT. **This is a workaround pending resolution of below issue.** Fixes: ROCM-2026 Cherry-picks 4058a19. ## Technical Details The fix adds a symlink `amdgcn -> lib/llvm/amdgcn` alongside the existing `llvm -> lib/llvm` symlink in the aux-overlay component, restoring compatibility with the expected ROCm installation layout. ## Test Plan Test building in local machine and check if amdgcn is pointing to lib/llvm/amdgcn ## Test Result amdgcn soft link created correctly ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. Signed-off-by: Wang, Yanyao <yanyao.wang@amd.com> Co-authored-by: Wang, Yanyao <yanyao.wang@amd.com>
1 parent 8c77104 commit ccb8a93

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

base/aux-overlay/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ project(therock-aux-overlay)
1515
if(NOT WIN32)
1616
add_custom_target(symlinks ALL
1717
COMMAND "${CMAKE_COMMAND}" -E create_symlink "lib/llvm" "${CMAKE_CURRENT_BINARY_DIR}/llvm"
18+
COMMAND "${CMAKE_COMMAND}" -E create_symlink "lib/llvm/amdgcn" "${CMAKE_CURRENT_BINARY_DIR}/amdgcn"
1819
)
1920
install(FILES
2021
"${CMAKE_CURRENT_BINARY_DIR}/llvm"
22+
"${CMAKE_CURRENT_BINARY_DIR}/amdgcn"
2123
DESTINATION .
2224
)
2325
endif()

0 commit comments

Comments
 (0)