Skip to content

Commit dc36108

Browse files
authored
Update test scripts to include the new operation.
Differential Revision: D78060209 Pull Request resolved: #2665
1 parent 6a74e34 commit dc36108

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

torchao/experimental/ops/tests/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,25 @@ if (TORCHAO_BUILD_CPU_AARCH64)
8282
endif()
8383
target_link_torchao_parallel_backend(test_linear_8bit_act_xbit_weight "${TORCHAO_PARALLEL_BACKEND}")
8484

85+
add_executable(
86+
test_groupwise_lowbit_weight_lut
87+
test_groupwise_lowbit_weight_lut.cpp
88+
${TORCHAO_ROOT}/ops/groupwise_lowbit_weight_lut/groupwise_lowbit_weight_lut.cpp
89+
)
90+
target_link_libraries(
91+
test_groupwise_lowbit_weight_lut
92+
PRIVATE
93+
GTest::gtest_main
94+
)
95+
if (TORCHAO_BUILD_CPU_AARCH64)
96+
target_link_libraries(
97+
test_groupwise_lowbit_weight_lut
98+
PRIVATE
99+
torchao_kernels_aarch64
100+
)
101+
endif()
102+
target_link_torchao_parallel_backend(test_groupwise_lowbit_weight_lut "${TORCHAO_PARALLEL_BACKEND}")
103+
85104
include(GoogleTest)
105+
gtest_discover_tests(test_groupwise_lowbit_weight_lut)
86106
gtest_discover_tests(test_linear_8bit_act_xbit_weight)

torchao/experimental/ops/tests/build_and_run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ fi
6363

6464
# Run
6565
${CMAKE_OUT}/test_linear_8bit_act_xbit_weight
66+
${CMAKE_OUT}/test_groupwise_lowbit_weight_lut

0 commit comments

Comments
 (0)