CMakeLists.txt 893 Bytes
Newer Older
1
# Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Przemek Tredak's avatar
Przemek Tredak committed
2
3
4
#
# See LICENSE for license information.

Tim Moon's avatar
Tim Moon committed
5
6
7
8
9
10
add_executable(test_operator
               test_qdq.cu
               test_cast_transpose.cu
               test_transpose.cu
               test_cast_transpose_dbias.cu
               test_cast_transpose_dbias_dgelu.cu
11
               test_cast_transpose_dgeglu.cu
12
               test_act.cu
13
               test_normalization.cu
Tim Moon's avatar
Tim Moon committed
14
               test_multi_cast_transpose.cu
15
               test_multi_padding.cu
16
               test_causal_softmax.cu
Tim Moon's avatar
Tim Moon committed
17
               ../test_common.cu)
Przemek Tredak's avatar
Przemek Tredak committed
18

19
list(APPEND test_operator_LINKER_LIBS CUDA::cudart GTest::gtest_main ${TE_LIB} CUDA::nvrtc CUDNN::cudnn)
20
21

target_link_libraries(test_operator PUBLIC ${test_operator_LINKER_LIBS})
zlsh80826's avatar
zlsh80826 committed
22
target_compile_options(test_operator PRIVATE -O2)
Przemek Tredak's avatar
Przemek Tredak committed
23
24
25

include(GoogleTest)
gtest_discover_tests(test_operator)