diff --git a/cmake/Modules/FindXCCL.cmake b/cmake/Modules/FindXCCL.cmake index c4b4c1e50..1881cf3aa 100644 --- a/cmake/Modules/FindXCCL.cmake +++ b/cmake/Modules/FindXCCL.cmake @@ -8,8 +8,8 @@ include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) set(XCCL_ROOT "/opt/intel/oneapi/ccl/latest") if (NOT EXISTS "${XCCL_ROOT}") - message(STATUS "Default OneCCL not found, using current environment OneAPI") - set(XCCL_ROOT $ENV{ONEAPI_ROOT}/ccl/latest) + message(STATUS "Default OneCCL not found, using current environment OneCCL") + set(XCCL_ROOT $ENV{CCL_ROOT}) endif() string(COMPARE EQUAL "${XCCL_ROOT}" "" nocclfound)