Unverified Commit 63822008 authored by zlsh80826's avatar zlsh80826 Committed by GitHub
Browse files

Reduce unit tests time (#46)



* Use -O2 for the test_operator
Signed-off-by: default avatarReese Wang <rewang@nvidia.com>

* Increase test parallelism
Signed-off-by: default avatarReese Wang <rewang@nvidia.com>
Signed-off-by: default avatarReese Wang <rewang@nvidia.com>
parent c49f90d3
...@@ -11,4 +11,4 @@ export LD_LIBRARY_PATH=$TE_LIB_PATH:$LD_LIBRARY_PATH ...@@ -11,4 +11,4 @@ export LD_LIBRARY_PATH=$TE_LIB_PATH:$LD_LIBRARY_PATH
cd $TE_PATH/tests/cpp cd $TE_PATH/tests/cpp
cmake -GNinja -Bbuild . cmake -GNinja -Bbuild .
cmake --build build cmake --build build
cd build && ctest ctest --test-dir build -j4
...@@ -14,6 +14,7 @@ add_executable(test_operator ...@@ -14,6 +14,7 @@ add_executable(test_operator
../test_common.cu) ../test_common.cu)
target_link_libraries(test_operator PUBLIC CUDA::cudart GTest::gtest_main ${TE_LIB}) target_link_libraries(test_operator PUBLIC CUDA::cudart GTest::gtest_main ${TE_LIB})
target_compile_options(test_operator PRIVATE -O2)
include(GoogleTest) include(GoogleTest)
gtest_discover_tests(test_operator) gtest_discover_tests(test_operator)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment