Skip to content

Commit

Permalink
[HotFix] Support ROCm 6.1 package build
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 committed Aug 6, 2024
1 parent ed2e496 commit 69d5732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 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 69d5732

Please sign in to comment.