Skip to content

Commit 18d0dd3

Browse files
committed
Add extension/llm/custom_ops/spinquant/test to CMake
Need to run it to make sure build changes in this directory aren't breaking things ghstack-source-id: 6441f1a ghstack-comment-id: 2648964965 Pull Request resolved: #8345
1 parent 9746ce7 commit 18d0dd3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
# @generated by test/utils/generate_gtest_cmakelists.py
8+
#
9+
# This file should be formatted with
10+
# ~~~
11+
# cmake-format -i CMakeLists.txt
12+
# ~~~
13+
# It should also be cmake-lint clean.
14+
#
15+
16+
cmake_minimum_required(VERSION 3.19)
17+
18+
set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..)
19+
20+
include(${EXECUTORCH_ROOT}/build/Test.cmake)
21+
22+
set(_test_srcs
23+
fast_hadamard_transform_test.cpp fast_hadamard_transform_test_impl.cpp
24+
op_fast_hadamard_transform_test.cpp
25+
)
26+
27+
et_cxx_test(
28+
extension_llm_custom_ops_spinquant_test SOURCES ${_test_srcs} EXTRA_LIBS
29+
custom_ops
30+
)

test/utils/OSSTestConfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
{ "tests": [
2+
{
3+
"directory": "extension/llm/custom_ops/spinquant/test",
4+
"sources": [
5+
"fast_hadamard_transform_test.cpp",
6+
"fast_hadamard_transform_test_impl.cpp",
7+
"op_fast_hadamard_transform_test.cpp"
8+
],
9+
"additional_libs": [
10+
"custom_ops"
11+
]
12+
},
213
{
314
"directory": "extension/data_loader/test",
415
"sources": [

0 commit comments

Comments
 (0)