-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Autoscheduler test reorg, part 3 #7067
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
Merged
+111
−211
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
ee6f7dc
Autoscheduler test reorg, part 1
steven-johnson 6fff600
Fixes
steven-johnson 2fce574
Autoscheduler test reorg, part 2
steven-johnson 4c46110
Update CMakeLists.txt
steven-johnson 2a8d0eb
trigger buildbots
steven-johnson 7edc7da
Update CMakeLists.txt
steven-johnson 6950373
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson cf40033
fixes
steven-johnson 4949ae1
Update mat_mul.cpp
steven-johnson 83b99c4
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson 4544733
fixes
steven-johnson 5d76be4
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson 09e7264
Autoscheduler test reorg, part 3
steven-johnson 349c59e
Merge branch 'srj/autoscheduler-tests-2' into srj/autoscheduler-tests-3
steven-johnson f701650
Update reorder.cpp
steven-johnson 7325a05
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson e7e82d6
Merge branch 'srj/autoscheduler-tests-2' into srj/autoscheduler-tests-3
steven-johnson ceebfeb
fixes
steven-johnson 7d44b80
Update max_filter.cpp
steven-johnson c353c8d
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson 961c1ad
Merge branch 'srj/autoscheduler-tests-2' into srj/autoscheduler-tests-3
steven-johnson e81df5a
Update CMakeLists.txt
steven-johnson e12ffac
Merge branch 'srj/autoscheduler-tests-1' into srj/autoscheduler-tests-2
steven-johnson aaac6bf
Merge branch 'srj/autoscheduler-tests-2' into srj/autoscheduler-tests-3
steven-johnson fac8ea7
Update CMakeLists.txt
steven-johnson 2b279fe
Merge branch 'main' into srj/autoscheduler-tests-3
steven-johnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| add_subdirectory(adams2019) | ||
| add_subdirectory(li2018) | ||
| add_subdirectory(mullapudi2016) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| if (NOT TARGET Halide::Adams2019) | ||
| message(STATUS "Disabling adams2019 tests for static Halide") | ||
| return() | ||
| endif () | ||
|
|
||
| ## | ||
| # Build rules for the Adams2019 autoscheduler library | ||
| ## | ||
|
|
||
| function(add_adams2019_test NAME) | ||
| set(options "") | ||
| set(oneValueArgs ENVIRONMENT) | ||
| set(multiValueArgs COMMAND LABELS) | ||
| cmake_parse_arguments(ARGS "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
|
|
||
| if (NOT ARGS_COMMAND) | ||
| set(ARGS_COMMAND ${NAME}) | ||
| endif() | ||
|
|
||
| if (NOT ARGS_LABELS) | ||
| set(ARGS_LABELS "") | ||
| endif() | ||
| list(APPEND ARGS_LABELS adams2019) | ||
| list(APPEND ARGS_LABELS autoschedulers) | ||
|
|
||
| add_test(NAME ${NAME} | ||
| COMMAND ${ARGS_COMMAND}) | ||
| set_tests_properties(${NAME} | ||
| PROPERTIES | ||
| LABELS "${ARGS_LABELS}" | ||
| ENVIRONMENT "${ENVIRONMENT}") | ||
| endfunction() | ||
|
|
||
|
|
||
| ## | ||
| # Tests and demos | ||
| # TODO(#4053): move these to a separate folder since they're tests. | ||
steven-johnson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ## | ||
|
|
||
| # ================================================================= | ||
|
|
||
| add_halide_generator(adams2019_demo.generator | ||
| SOURCES demo_generator.cpp) | ||
|
|
||
| add_halide_library(adams2019_demo FROM adams2019_demo.generator | ||
| GENERATOR demo | ||
| TARGETS cmake | ||
| AUTOSCHEDULER Halide::Adams2019 | ||
| REGISTRATION DEMO_REGISTRATION_FILE) | ||
|
|
||
| add_executable(adams2019_demo_apps_autoscheduler ${DEMO_REGISTRATION_FILE}) | ||
| target_link_libraries(adams2019_demo_apps_autoscheduler PRIVATE adams2019_demo Halide::RunGenMain) | ||
|
|
||
| add_adams2019_test(adams2019_demo_apps_autoscheduler | ||
| COMMAND adams2019_demo_apps_autoscheduler --benchmarks=all --benchmark_min_time=1 --estimate_all) | ||
|
|
||
| # ================================================================= | ||
|
|
||
| add_halide_generator(adams2019_included_schedule_file.generator | ||
| SOURCES included_schedule_file_generator.cpp) | ||
|
|
||
| add_halide_library(adams2019_included_schedule_file FROM adams2019_included_schedule_file.generator | ||
| GENERATOR included_schedule_file | ||
| TARGETS cmake | ||
| AUTOSCHEDULER Halide::Adams2019 | ||
| REGISTRATION adams2019_included_schedule_reg) | ||
|
|
||
| add_executable(adams2019_demo_included_schedule_file ${adams2019_included_schedule_reg}) | ||
| target_link_libraries(adams2019_demo_included_schedule_file PRIVATE adams2019_included_schedule_file Halide::RunGenMain) | ||
|
|
||
| add_adams2019_test(adams2019_demo_included_schedule_file | ||
| COMMAND adams2019_demo_included_schedule_file --benchmarks=all --benchmark_min_time=1 --estimate_all) | ||
|
|
||
| # ================================================================= | ||
| # Smaller tests | ||
|
|
||
| add_executable(adams2019_test_apps_autoscheduler test.cpp) | ||
| target_link_libraries(adams2019_test_apps_autoscheduler PRIVATE Halide::Halide Halide::Tools ${CMAKE_DL_LIBS}) | ||
|
|
||
| add_adams2019_test(adams2019_test_apps_autoscheduler | ||
| COMMAND adams2019_test_apps_autoscheduler $<TARGET_FILE:Halide_Adams2019> $<TARGET_FILE_DIR:Halide_Adams2019>/baseline.weights | ||
| LABELS multithreaded | ||
| ENVIRONMENT "LD_LIBRARY_PATH=$<TARGET_FILE_DIR:Halide_Adams2019>:$ENV{LD_LIBRARY_PATH}") | ||
|
|
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.