Force unset USE_AMDSMI internal cache variable when ENABLE_AMDSMI is OFF

这个提交包含在:
Donato Capitella 于 2026-02-01 09:56:24 +00:00 提交
1 父节点 f1f0851398
当前提交 6289de70ad
1 个文件已更改
+3
+3
查看文件
@@ -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)