From 6289de70adb632243495e2e34e654759af02ba44 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Sun, 1 Feb 2026 09:56:24 +0000 Subject: [PATCH] Force unset USE_AMDSMI internal cache variable when ENABLE_AMDSMI is OFF --- projects/rccl/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/rccl/CMakeLists.txt b/projects/rccl/CMakeLists.txt index 36fcedcb1f..c7f58387b5 100644 --- a/projects/rccl/CMakeLists.txt +++ b/projects/rccl/CMakeLists.txt @@ -281,6 +281,9 @@ if(ROCM_VERSION VERSION_GREATER_EQUAL "71100" AND ENABLE_AMDSMI) set(SMI_LIBRARIES amd_smi) set(USE_AMDSMI ON CACHE INTERNAL "Use amd-smi instead of rocm-smi") endif() +else() + # Force unset if disabled + unset(USE_AMDSMI CACHE) endif() if(NOT USE_AMDSMI AND ENABLE_AMDSMI)