From 95b150d96abd08d490cb1ac472d925b1952bc4b6 Mon Sep 17 00:00:00 2001 From: Donato Capitella Date: Sun, 1 Feb 2026 10:11:26 +0000 Subject: [PATCH] Fix: Do not compile rocm_smi_wrap.cc when ENABLE_AMDSMI is OFF --- projects/rccl/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rccl/CMakeLists.txt b/projects/rccl/CMakeLists.txt index c7f58387b5..b8bebe7703 100644 --- a/projects/rccl/CMakeLists.txt +++ b/projects/rccl/CMakeLists.txt @@ -803,7 +803,7 @@ if(USE_AMDSMI) src/include/amdsmi_wrap.h src/misc/amdsmi_wrap.cc ) -else() +elseif(ENABLE_AMDSMI) set(SMI_SOURCES src/include/rocm_smi_wrap.h src/misc/rocm_smi_wrap.cc