Skip to content

Commit

Permalink
Reduce unit tests time (#46)
Browse files Browse the repository at this point in the history
* Use -O2 for the test_operator

Signed-off-by: Reese Wang <[email protected]>

* Increase test parallelism

Signed-off-by: Reese Wang <[email protected]>

Signed-off-by: Reese Wang <[email protected]>
  • Loading branch information
zlsh80826 authored Jan 3, 2023
1 parent c49f90d commit 6382200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion qa/L0_cppunittest/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export LD_LIBRARY_PATH=$TE_LIB_PATH:$LD_LIBRARY_PATH
cd $TE_PATH/tests/cpp
cmake -GNinja -Bbuild .
cmake --build build
cd build && ctest
ctest --test-dir build -j4
1 change: 1 addition & 0 deletions tests/cpp/operator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ add_executable(test_operator
../test_common.cu)

target_link_libraries(test_operator PUBLIC CUDA::cudart GTest::gtest_main ${TE_LIB})
target_compile_options(test_operator PRIVATE -O2)

include(GoogleTest)
gtest_discover_tests(test_operator)

0 comments on commit 6382200

Please sign in to comment.