Skip to content

Commit

Permalink
add default ccl root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao1Han committed Oct 12, 2024
1 parent 3d55b85 commit f69059a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/Modules/FindXCCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@

include(FindPackageHandleStandardArgs)

# include FindMKL.cmake to use its variables
include(FindMKL)

set(XCCL_ROOT "")
if(DEFINED ENV{CCL_ROOT})
if (EXISTS "${DEFAULT_INTEL_COMPILER_DIR}/ccl/latest")
SET(XCCL_ROOT "${DEFAULT_INTEL_COMPILER_DIR}/ccl/latest")
elseif(DEFINED ENV{CCL_ROOT})
message(STATUS "Default OneCCL not found, using current environment OneCCL")
set(XCCL_ROOT $ENV{CCL_ROOT})
endif()

Expand Down

0 comments on commit f69059a

Please sign in to comment.