CMakeLists.txt 1.38 KB
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
add_executable(test_operator
6
               test_cast.cu
7
               test_cast_current_scaling.cu
8
9
10
11
               test_cast_dbias.cu
               test_cast_dbias_dgelu.cu
               test_cast_gated_swiglu.cu
               test_cast_mxfp8_gated_swiglu.cu
Tim Moon's avatar
Tim Moon committed
12
               test_qdq.cu
13
14
               test_cast_mxfp8.cu
               test_dequantize_mxfp8.cu
Tim Moon's avatar
Tim Moon committed
15
               test_transpose.cu
16
               test_cast_transpose.cu
17
               test_cast_transpose_current_scaling.cu
Tim Moon's avatar
Tim Moon committed
18
19
               test_cast_transpose_dbias.cu
               test_cast_transpose_dbias_dgelu.cu
20
               test_cast_transpose_dgeglu.cu
21
               test_act.cu
22
               test_normalization.cu
23
               test_normalization_mxfp8.cu
Tim Moon's avatar
Tim Moon committed
24
               test_multi_cast_transpose.cu
25
               test_multi_padding.cu
26
               test_causal_softmax.cu
27
               test_swizzle.cu
Tim Moon's avatar
Tim Moon committed
28
               ../test_common.cu)
Przemek Tredak's avatar
Przemek Tredak committed
29

30
find_package(OpenMP REQUIRED)
31
list(APPEND test_operator_LINKER_LIBS CUDA::cudart GTest::gtest_main ${TE_LIB} CUDA::nvrtc CUDNN::cudnn)
32

33
34
target_link_libraries(test_operator PUBLIC ${test_operator_LINKER_LIBS} OpenMP::OpenMP_CXX)
target_compile_options(test_operator PRIVATE -O2 -fopenmp)
Przemek Tredak's avatar
Przemek Tredak committed
35
36

include(GoogleTest)
37
gtest_discover_tests(test_operator DISCOVERY_TIMEOUT 600)