CMakeLists.txt 943 Bytes
Newer Older
1
# Copyright (c) 2022-2024, 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
Tim Moon's avatar
Tim Moon committed
12
               test_gelu.cu
13
14
               test_geglu.cu
               test_dgeglu.cu
Tim Moon's avatar
Tim Moon committed
15
               test_layernorm.cu
zlsh80826's avatar
zlsh80826 committed
16
               test_rmsnorm.cu
Tim Moon's avatar
Tim Moon committed
17
               test_multi_cast_transpose.cu
18
               test_causal_softmax.cu
Tim Moon's avatar
Tim Moon committed
19
               ../test_common.cu)
Przemek Tredak's avatar
Przemek Tredak committed
20

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

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

include(GoogleTest)
gtest_discover_tests(test_operator)