From 51d26b7ceab6411ce18b48bab1aa302c9f55c8a4 Mon Sep 17 00:00:00 2001 From: Yiltan Date: Thu, 8 Jan 2026 11:25:16 -0500 Subject: [PATCH] Fix __match_any_sync on ROCm 6.x (#382) [ROCm/rocshmem commit: e47cff7f456e8f7c292226e901621d9af904b798] --- projects/rocshmem/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/rocshmem/CMakeLists.txt b/projects/rocshmem/CMakeLists.txt index 17571a15e7..58f3b79e76 100644 --- a/projects/rocshmem/CMakeLists.txt +++ b/projects/rocshmem/CMakeLists.txt @@ -214,6 +214,11 @@ if (NOT BUILD_TESTS_ONLY) -fgpu-rdc ) + if(${ROCM_MAJOR_VERSION} LESS 7) + # ROCm 6.x requires us to explicitly enable warp sync builtins + target_compile_definitions(${PROJECT_NAME} PRIVATE HIP_ENABLE_WARP_SYNC_BUILTINS=1) + endif() + ############################################################################# # INSTALL #############################################################################