Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise labels on autoscheduler tests #7732

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/autoschedulers/adams2019/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ if (WITH_TESTS)
add_executable(adams2019_test_function_dag test_function_dag.cpp FunctionDAG.cpp)
target_link_libraries(adams2019_test_function_dag PRIVATE ASLog Halide::Halide Halide::Tools Halide::Plugin)
add_test(NAME adams2019_test_function_dag COMMAND adams2019_test_function_dag)
set_tests_properties(adams2019_test_function_dag PROPERTIES LABELS "adams2019;autoschedulers;auto_schedule")
set_tests_properties(adams2019_test_function_dag PROPERTIES LABELS "adams2019;autoschedulers_cpu;auto_schedule")
endif()
2 changes: 1 addition & 1 deletion src/autoschedulers/anderson2021/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ if (WITH_TESTS)
# This is a workaround for issues with the nvidia driver under ASAN
# https://forums.developer.nvidia.com/t/cuda-runtime-library-and-addresssanitizer-incompatibilty/63145
ENVIRONMENT ASAN_OPTIONS=protect_shadow_gap=0
LABELS Anderson2021)
LABELS "anderson2021;autoschedulers_cuda")
endfunction()

add_executable(anderson2021_test_function_dag test_function_dag.cpp FunctionDAG.cpp)
Expand Down
2 changes: 1 addition & 1 deletion src/autoschedulers/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ endif ()
if (WITH_TESTS)
add_executable(test_perfect_hash_map test_perfect_hash_map.cpp)
add_test(NAME test_perfect_hash_map COMMAND test_perfect_hash_map)
set_tests_properties(test_perfect_hash_map PROPERTIES LABELS "autoschedulers;auto_schedule")
set_tests_properties(test_perfect_hash_map PROPERTIES LABELS "autoschedulers_cpu;auto_schedule")
endif()
8 changes: 8 additions & 0 deletions test/autoschedulers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Note that there are 3 distinct tags for autoscheduler tests:
#
# autoscheduler_cpu: this autoscheduler is expected to work for CPU targets
# autoscheduler_gpu: this autoscheduler is expected to work for GPU targets
# autoscheduler_cuda: this autoscheduler is expected to work on Cuda targets (but probably not other GPU targets)
#
# There is also a legacy tag, `auto_schedule`, which is present for legacy purposes and will be removed soon.

add_subdirectory(adams2019)
if (TARGET_NVPTX)
add_subdirectory(anderson2021)
Expand Down
3 changes: 2 additions & 1 deletion test/autoschedulers/adams2019/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function(add_adams2019_test NAME)
set(ARGS_LABELS "")
endif()
list(APPEND ARGS_LABELS adams2019)
list(APPEND ARGS_LABELS autoschedulers)
list(APPEND ARGS_LABELS autoschedulers_cpu)
list(APPEND ARGS_LABELS auto_schedule)

add_test(NAME ${NAME}
COMMAND ${ARGS_COMMAND})
Expand Down
6 changes: 4 additions & 2 deletions test/autoschedulers/anderson2021/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function(add_anderson2021_test NAME)
set(ARGS_LABELS "")
endif()
list(APPEND ARGS_LABELS anderson2021)
list(APPEND ARGS_LABELS autoschedulers)
list(APPEND ARGS_LABELS autoschedulers_cuda)
# No: anderson2021 didn't have this label before, and it's going away soon, don't add it now
# list(APPEND ARGS_LABELS auto_schedule)

add_test(NAME ${NAME}
COMMAND ${ARGS_COMMAND})
Expand Down Expand Up @@ -52,7 +54,7 @@ add_executable(anderson2021_demo_apps_autoscheduler ${DEMO_REGISTRATION_FILE})
target_link_libraries(anderson2021_demo_apps_autoscheduler PRIVATE anderson2021_demo Halide::RunGenMain)

add_anderson2021_test(anderson2021_demo_apps_autoscheduler
COMMAND anderson2021_demo_apps_autoscheduler --benchmarks=all --benchmark_min_time=1 --estimate_all --skip_bad_environment)
COMMAND anderson2021_demo_apps_autoscheduler --benchmarks=all --benchmark_min_time=1 --estimate_all --skip_bad_environment)

# =================================================================

Expand Down
6 changes: 3 additions & 3 deletions test/autoschedulers/li2018/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ target_link_libraries(li2018_demo_gradient_autoscheduler PRIVATE li2018_demo_gra
# demo_generator.cpp
add_halide_test(li2018_demo_gradient_autoscheduler
COMMAND li2018_demo_gradient_autoscheduler --benchmarks=all --benchmark_min_time=1 --estimate_all --success
GROUPS li2018 autoschedulers auto_schedule multithreaded)
GROUPS li2018 autoschedulers_cpu autoschedulers_gpu auto_schedule multithreaded)

tests(GROUPS li2018 autoschedulers auto_schedule
tests(GROUPS li2018 autoschedulers_cpu autoschedulers_gpu auto_schedule
SOURCES
test.cpp
ARGS $<TARGET_FILE:Halide::Li2018>)
Expand All @@ -43,7 +43,7 @@ if (WITH_PYTHON_BINDINGS)

set_tests_properties(li2018_gradient_autoscheduler_test_py PROPERTIES
DEPENDS li2018_test
LABELS "li2018;autoschedulers;auto_schedule"
LABELS "li2018;autoschedulers_cpu;autoschedulers_gpu;auto_schedule"
ENVIRONMENT_MODIFICATION "${PYTHONPATH}")
endif()
endif ()
4 changes: 2 additions & 2 deletions test/autoschedulers/mullapudi2016/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ if (NOT TARGET Halide::Mullapudi2016)
return()
endif()

tests(GROUPS mullapudi2016 autoschedulers auto_schedule
tests(GROUPS mullapudi2016 autoschedulers_cpu auto_schedule
SOURCES
extern.cpp
param.cpp
ARGS $<TARGET_FILE:Halide::Mullapudi2016>)

tests(GROUPS mullapudi2016 autoschedulers auto_schedule multithreaded
tests(GROUPS mullapudi2016 autoschedulers_cpu auto_schedule multithreaded
SOURCES
cost_function.cpp
data_dependent.cpp
Expand Down