CMakeLists.txt 1.59 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
               test_cast_mxfp8.cu
14
               test_cast_nvfp4_transpose.cu
15
               test_cast_float8blockwise.cu
16
               test_dequantize_mxfp8.cu
Tim Moon's avatar
Tim Moon committed
17
               test_transpose.cu
18
               test_cast_transpose.cu
19
               test_cast_transpose_current_scaling.cu
Tim Moon's avatar
Tim Moon committed
20
21
               test_cast_transpose_dbias.cu
               test_cast_transpose_dbias_dgelu.cu
22
               test_cast_transpose_dgeglu.cu
23
               test_act.cu
24
               test_normalization.cu
25
               test_normalization_mxfp8.cu
26
               test_memset.cu
Tim Moon's avatar
Tim Moon committed
27
               test_multi_cast_transpose.cu
28
               test_multi_padding.cu
29
               test_multi_unpadding.cu
30
               test_causal_softmax.cu
31
               test_swizzle.cu
32
               test_swap_first_dims.cu
Tim Moon's avatar
Tim Moon committed
33
               ../test_common.cu)
Przemek Tredak's avatar
Przemek Tredak committed
34

35
# Find required packages
36
find_package(OpenMP REQUIRED)
37
list(APPEND test_operator_LINKER_LIBS CUDA::cudart GTest::gtest_main ${TE_LIB} CUDA::nvrtc CUDNN::cudnn)
38

39
40
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
41
42

include(GoogleTest)
43
gtest_discover_tests(test_operator DISCOVERY_TIMEOUT 600)