Skip to content

Commit 4e32305

Browse files
naromero77amdjithunnair-amd
authored andcommitted
1 parent 8f4963d commit 4e32305

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

cmake/Dependencies.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,13 @@ if(USE_ROCM)
10891089
)
10901090
endif()
10911091

1092+
# ROCM-SMI needed to support symmetric memory
1093+
if(USE_DISTRIBUTED AND UNIX)
1094+
list(APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS
1095+
rocm_smi64
1096+
)
1097+
endif()
1098+
10921099
# ---[ Kernel asserts
10931100
# Kernel asserts is disabled for ROCm by default.
10941101
# It can be turned on by turning on the env USE_ROCM_KERNEL_ASSERT to the build system.

cmake/public/LoadHIP.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ if(HIP_FOUND)
198198
if(UNIX)
199199
find_package_and_print_version(rccl)
200200
find_package_and_print_version(hsa-runtime64 REQUIRED)
201+
find_package_and_print_version(rocm_smi REQUIRED)
201202
endif()
202203

203204
# Optional components.

0 commit comments

Comments
 (0)