File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff 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)
2627endif (ROCM_FOUND)
2728
2829
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments