Commit c332dbd0 authored by Robert Maynard's avatar Robert Maynard
Browse files

Only add the rules to run openmp tests serially when testing is enabled

parent a3fe9770
......@@ -34,13 +34,15 @@ set(unit_tests
)
vtkm_unit_tests(OpenMP SOURCES ${unit_tests})
#We need to have all OpenMP tests run serially as they
#will uses all the system cores, and we will cause a N*N thread
#explosion which causes the tests to run slower than when run
#serially
foreach (test ${unit_tests})
get_filename_component(tname ${test} NAME_WE)
set_tests_properties(${tname} PROPERTIES
RUN_SERIAL True
)
endforeach()
if (VTKm_ENABLE_TESTING)
#We need to have all OpenMP tests run serially as they
#will uses all the system cores, and we will cause a N*N thread
#explosion which causes the tests to run slower than when run
#serially
foreach (test ${unit_tests})
get_filename_component(tname ${test} NAME_WE)
set_tests_properties(${tname} PROPERTIES
RUN_SERIAL True
)
endforeach()
endif()
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