CMakeLists.txt 974 Bytes
Newer Older
1
# Copyright (c) 2022-2023, 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
18
               test_multi_cast_transpose.cu
               ../test_common.cu)
Przemek Tredak's avatar
Przemek Tredak committed
19

20
21
22
23
24
25
26
list(APPEND test_operator_LINKER_LIBS CUDA::cudart GTest::gtest_main ${TE_LIB})

if(EXISTS ${NVTE_MPI_INCLUDE})
    list(APPEND test_operator_LINKER_LIBS ${MPI_LIB})
endif()

target_link_libraries(test_operator PUBLIC ${test_operator_LINKER_LIBS})
zlsh80826's avatar
zlsh80826 committed
27
target_compile_options(test_operator PRIVATE -O2)
Przemek Tredak's avatar
Przemek Tredak committed
28
29
30

include(GoogleTest)
gtest_discover_tests(test_operator)