Skip to content

Commit

Permalink
[ROCm] Support ROCm 6 (#17256)
Browse files Browse the repository at this point in the history
This PR updates some ROCm modules in order to support ROCm 6.
  • Loading branch information
MasterJH5574 committed Aug 9, 2024
1 parent b40a02c commit 6ae2961
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/modules/ROCM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ if(ROCM_FOUND)
# avoid global retrigger of cmake
include_directories(SYSTEM ${ROCM_INCLUDE_DIRS})
add_definitions(-D__HIP_PLATFORM_HCC__=1)
add_definitions(-D__HIP_PLATFORM_AMD__=1)
endif(ROCM_FOUND)


Expand Down
2 changes: 1 addition & 1 deletion cmake/utils/FindRCCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ macro(find_rccl use_rccl)
find_path(RCCL_INCLUDE_DIR NAMES rccl.h)
find_library(RCCL_LIBRARY NAMES rccl)
else()
find_path(RCCL_INCLUDE_DIR NAMES rccl.h HINTS ${use_rccl} ${use_rccl}/include)
find_path(RCCL_INCLUDE_DIR NAMES rccl.h HINTS ${use_rccl} ${use_rccl}/include ${use_rccl}/include/rccl)
find_library(RCCL_LIBRARY NAMES rccl HINTS ${use_rccl} ${use_rccl}/lib)
endif()
include(FindPackageHandleStandardArgs)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/rocm/rocm_device_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ROCMDeviceAPI final : public DeviceAPI {
case kGcnArch: {
hipDeviceProp_t prop;
ROCM_CALL(hipGetDeviceProperties(&prop, device.device_id));
*rv = prop.gcnArch;
*rv = prop.gcnArchName;
return;
}
case kApiVersion: {
Expand Down

0 comments on commit 6ae2961

Please sign in to comment.