Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao1Han committed Dec 12, 2024
1 parent 548ac89 commit f91ef77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cmake/Modules/FindXCCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@

include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)

set(XCCL_ROOT $ENV{CCL_ROOT})
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)
endif()

string(COMPARE EQUAL "${XCCL_ROOT}" "" nocclfound)
if(nocclfound)
set(XCCL_FOUND False)
Expand Down
1 change: 0 additions & 1 deletion src/xccl/ProcessGroupXCCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ std::shared_ptr<xcclComm_t> ProcessGroupXCCL::getXCCLComm(
"Not able to create/get "
"XCCL Communicator since the devices are empty ");
{
// todo: why do we need mutex here?
std::lock_guard<std::mutex> lock(mutex_);
if (devXCCLCommMap_.find(deviceKey) != devXCCLCommMap_.end()) {
return devXCCLCommMap_[deviceKey];
Expand Down

0 comments on commit f91ef77

Please sign in to comment.