Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ if has_config("infer") then
add_includedirs(infini_root .. "/include")
end

if has_config("ccl") then
add_defines("ENABLE_CCL")
end

if has_config("nv-gpu") then
add_defines("ENABLE_NV_GPU")
target("nv-gpu")
Expand All @@ -95,7 +99,6 @@ if has_config("nv-gpu") then
set_languages("cxx17")
add_files("src/runtime/cuda/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
-- Check if NCCL_ROOT is defined
local nccl_root = os.getenv("NCCL_ROOT")
if nccl_root then
Expand Down Expand Up @@ -135,7 +138,6 @@ if has_config("ascend-npu") then
-- Add files
add_files("src/runtime/ascend/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_includedirs(ASCEND_HOME .. "/include/hccl")
add_links("libhccl.so")
add_files("src/ccl/ascend/*cc")
Expand Down Expand Up @@ -163,7 +165,6 @@ if has_config("kunlun-xpu") then
-- Add include dirs
add_files("src/runtime/kunlun/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_includedirs(KUNLUN_HOME .. "/include")
add_links("bkcl")
add_files("src/ccl/kunlun/*.cc")
Expand All @@ -187,7 +188,6 @@ if has_config("cambricon-mlu") then
set_languages("cxx17")
add_files("src/runtime/cambricon/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_links("libcncl.so")
add_files("src/ccl/cambricon/*cc")
end
Expand All @@ -210,7 +210,6 @@ if has_config("metax-gpu") then

add_files("src/runtime/maca/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_links("libhccl.so")
add_files("src/ccl/maca/*.cc")
end
Expand All @@ -233,7 +232,6 @@ if has_config("mthreads-gpu") then

add_files("src/runtime/musa/*.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_links("libmccl.so")
add_files("src/ccl/musa/*.cc")
end
Expand Down Expand Up @@ -342,7 +340,6 @@ target("infini_infer_test")
add_files("test/tensor/*.cc")
add_files("src/runtime/runtime.cc")
if has_config("ccl") then
add_defines("ENABLE_CCL")
add_files("src/ccl/infiniccl.cc")
add_files("test/ccl/*.cc")
end
Expand Down