File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,11 +72,17 @@ function(add_halide_test TARGET)
7272 # Resolve the "cmake" meta-target
7373 string (REGEX REPLACE "^cmake" "${Halide_CMAKE_TARGET} " _resolved_target "${Halide_TARGET} " )
7474
75- set_tests_properties (${TARGET} PROPERTIES
76- LABELS "${args_GROUPS} "
77- ENVIRONMENT "HL_TARGET=${_resolved_target} ;HL_JIT_TARGET=${_resolved_target} "
78- SKIP_REGULAR_EXPRESSION "\\ [SKIP\\ ]"
79- WILL_FAIL ${args_EXPECT_FAILURE} )
75+ set_tests_properties (
76+ ${TARGET}
77+ PROPERTIES
78+ LABELS "${args_GROUPS} "
79+ ENVIRONMENT "HL_TARGET=${_resolved_target} ;HL_JIT_TARGET=${_resolved_target} "
80+ SKIP_REGULAR_EXPRESSION "\\ [SKIP\\ ]"
81+ WILL_FAIL ${args_EXPECT_FAILURE}
82+ )
83+ if ("autoschedulers_cpu" IN_LIST args_GROUPS)
84+ set_tests_properties (${TARGET} PROPERTIES RUN_SERIAL TRUE )
85+ endif ()
8086
8187 if (NOT args_USE_EXIT_CODE_ONLY)
8288 set_tests_properties (${TARGET} PROPERTIES
Original file line number Diff line number Diff line change @@ -82,5 +82,10 @@ if (WITH_TESTS)
8282 target_link_libraries (adams2019_test_function_dag PRIVATE Halide::Plugin )
8383
8484 add_test (NAME adams2019_test_function_dag COMMAND adams2019_test_function_dag )
85- set_tests_properties (adams2019_test_function_dag PROPERTIES LABELS "adams2019;autoschedulers_cpu" )
86- endif ()
85+ set_tests_properties (
86+ adams2019_test_function_dag
87+ PROPERTIES
88+ LABELS "adams2019;autoschedulers_cpu"
89+ RUN_SERIAL TRUE
90+ )
91+ endif ()
Original file line number Diff line number Diff line change @@ -39,5 +39,10 @@ endif ()
3939if (WITH_TESTS)
4040 add_executable (test_perfect_hash_map test_perfect_hash_map.cpp )
4141 add_test (NAME test_perfect_hash_map COMMAND test_perfect_hash_map )
42- set_tests_properties (test_perfect_hash_map PROPERTIES LABELS "autoschedulers_cpu" )
43- endif ()
42+ set_tests_properties (
43+ test_perfect_hash_map
44+ PROPERTIES
45+ LABELS "autoschedulers_cpu"
46+ RUN_SERIAL TRUE
47+ )
48+ endif ()
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ function(add_adams2019_test NAME)
1010
1111 if (NOT ARGS_COMMAND)
1212 set (ARGS_COMMAND ${NAME} )
13- endif ()
13+ endif ()
1414
1515 if (NOT ARGS_LABELS)
1616 set (ARGS_LABELS "" )
17- endif ()
17+ endif ()
1818 list (APPEND ARGS_LABELS adams2019)
1919 list (APPEND ARGS_LABELS autoschedulers_cpu)
2020
@@ -24,6 +24,9 @@ function(add_adams2019_test NAME)
2424 PROPERTIES
2525 LABELS "${ARGS_LABELS} "
2626 ENVIRONMENT "${ENVIRONMENT} " )
27+ if ("autoschedulers_cpu" IN_LIST ARGS_LABELS)
28+ set_tests_properties (${NAME} PROPERTIES RUN_SERIAL TRUE )
29+ endif ()
2730endfunction ()
2831
2932
@@ -80,4 +83,3 @@ add_adams2019_test(adams2019_test_apps_autoscheduler
8083 COMMAND adams2019_test_apps_autoscheduler $<TARGET_FILE :Halide_Adams2019 > $<TARGET_FILE_DIR :Halide_Adams2019 >/baseline.weights
8184 LABELS multithreaded
8285 ENVIRONMENT "LD_LIBRARY_PATH=$<TARGET_FILE_DIR :Halide_Adams2019 >:$ENV{LD_LIBRARY_PATH} " )
83-
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ add_dependencies(li2018_test Halide::Li2018)
2525if (WITH_PYTHON_BINDINGS)
2626 if (Halide_TARGET MATCHES "webgpu" )
2727 message (WARNING "li2018_gradient_autoscheduler_test_py is not supported with WebGPU." )
28- else ()
28+ else ()
2929 find_package (Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module )
3030
3131 add_test (
@@ -36,9 +36,12 @@ if (WITH_PYTHON_BINDINGS)
3636 set (PYTHONPATH "$<PATH :NORMAL_PATH ,$<TARGET_FILE_DIR :Halide ::Python >/..>" )
3737 list (TRANSFORM PYTHONPATH PREPEND "PYTHONPATH=path_list_prepend:" )
3838
39- set_tests_properties (li2018_gradient_autoscheduler_test_py PROPERTIES
40- DEPENDS li2018_test
41- LABELS "li2018;autoschedulers_cpu;autoschedulers_gpu"
42- ENVIRONMENT_MODIFICATION "${PYTHONPATH} " )
43- endif ()
39+ set_tests_properties (
40+ li2018_gradient_autoscheduler_test_py PROPERTIES
41+ DEPENDS li2018_test
42+ LABELS "li2018;autoschedulers_cpu;autoschedulers_gpu"
43+ RUN_SERIAL TRUE
44+ ENVIRONMENT_MODIFICATION "${PYTHONPATH} "
45+ )
46+ endif ()
4447endif ()
You can’t perform that action at this time.
0 commit comments