Skip to content

Commit 45f8a0a

Browse files
authored
feat: update Docker image to support ATB, ACLNN fused ops and ProcessGroupHCCL. (#443)
1 parent cc75854 commit 45f8a0a

File tree

2 files changed

+5
-80
lines changed

2 files changed

+5
-80
lines changed

cmake/cc_test.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ function(cc_test)
6969
PRIVATE ${CC_TEST_LINKOPTS}
7070
)
7171

72+
if(USE_NPU)
73+
set(COMMON_LIBS Python::Python torch_npu torch_python)
74+
target_link_libraries(${CC_TEST_NAME} PRIVATE ${COMMON_LIBS})
75+
endif()
76+
7277
add_dependencies(all_tests ${CC_TEST_NAME})
7378

7479
gtest_add_tests(

xllm/core/kernels/npu/impl/CMakeLists.txt

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -27,83 +27,3 @@ cc_library(
2727
torch
2828
torch_npu
2929
)
30-
31-
cc_test(
32-
NAME
33-
npu_rms_norm_test
34-
SRCS
35-
npu_rms_norm_test.cpp
36-
DEPS
37-
:npu_kernels_impl
38-
GTest::gtest
39-
GTest::gtest_main
40-
xllm_kernels
41-
c_sec
42-
atb
43-
opapi
44-
spdlog::spdlog
45-
)
46-
47-
cc_test(
48-
NAME
49-
npu_linear_test
50-
SRCS
51-
npu_linear_test.cpp
52-
DEPS
53-
:npu_kernels_impl
54-
GTest::gtest
55-
GTest::gtest_main
56-
xllm_kernels
57-
c_sec
58-
atb
59-
opapi
60-
spdlog::spdlog
61-
)
62-
63-
cc_test(
64-
NAME
65-
npu_split_test
66-
SRCS
67-
npu_split_test.cpp
68-
DEPS
69-
:npu_kernels_impl
70-
GTest::gtest
71-
GTest::gtest_main
72-
xllm_kernels
73-
c_sec
74-
atb
75-
opapi
76-
spdlog::spdlog
77-
)
78-
79-
cc_test(
80-
NAME
81-
npu_rope_impl_test
82-
SRCS
83-
npu_rope_impl_test.cpp
84-
DEPS
85-
:npu_kernels_impl
86-
GTest::gtest
87-
GTest::gtest_main
88-
xllm_kernels
89-
c_sec
90-
atb
91-
opapi
92-
spdlog::spdlog
93-
)
94-
95-
cc_test(
96-
NAME
97-
npu_sample_model_test
98-
SRCS
99-
npu_sample_model_test.cpp
100-
DEPS
101-
:npu_kernels_impl
102-
GTest::gtest
103-
GTest::gtest_main
104-
xllm_kernels
105-
c_sec
106-
atb
107-
opapi
108-
spdlog::spdlog
109-
)

0 commit comments

Comments
 (0)