Skip to content

Commit 6ae2961

Browse files
authored
[ROCm] Support ROCm 6 (#17256)
This PR updates some ROCm modules in order to support ROCm 6.
1 parent b40a02c commit 6ae2961

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cmake/modules/ROCM.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if(ROCM_FOUND)
2323
# avoid global retrigger of cmake
2424
include_directories(SYSTEM ${ROCM_INCLUDE_DIRS})
2525
add_definitions(-D__HIP_PLATFORM_HCC__=1)
26+
add_definitions(-D__HIP_PLATFORM_AMD__=1)
2627
endif(ROCM_FOUND)
2728

2829

cmake/utils/FindRCCL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ macro(find_rccl use_rccl)
3232
find_path(RCCL_INCLUDE_DIR NAMES rccl.h)
3333
find_library(RCCL_LIBRARY NAMES rccl)
3434
else()
35-
find_path(RCCL_INCLUDE_DIR NAMES rccl.h HINTS ${use_rccl} ${use_rccl}/include)
35+
find_path(RCCL_INCLUDE_DIR NAMES rccl.h HINTS ${use_rccl} ${use_rccl}/include ${use_rccl}/include/rccl)
3636
find_library(RCCL_LIBRARY NAMES rccl HINTS ${use_rccl} ${use_rccl}/lib)
3737
endif()
3838
include(FindPackageHandleStandardArgs)

src/runtime/rocm/rocm_device_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ROCMDeviceAPI final : public DeviceAPI {
113113
case kGcnArch: {
114114
hipDeviceProp_t prop;
115115
ROCM_CALL(hipGetDeviceProperties(&prop, device.device_id));
116-
*rv = prop.gcnArch;
116+
*rv = prop.gcnArchName;
117117
return;
118118
}
119119
case kApiVersion: {

0 commit comments

Comments
 (0)