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

Improve error-handling in Anderson2021, and ensure build deps are cor… #7748

Merged
merged 2 commits into from
Aug 10, 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
1 change: 1 addition & 0 deletions src/autoschedulers/anderson2021/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if (WITH_TESTS)

function(_add_test TARGET)
add_test(NAME ${TARGET} COMMAND ${TARGET})
add_dependencies(${TARGET} Halide::Anderson2021)
set_tests_properties(${TARGET}
PROPERTIES
# This is a workaround for issues with the nvidia driver under ASAN
Expand Down
1 change: 1 addition & 0 deletions src/autoschedulers/anderson2021/SearchSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ vector<SearchSpace::ParallelTileOption> SearchSpace::filter_parallel_tile_option
for (const auto &l : c->stage->loop) {
if (!l.rvar) {
total *= o.outer_tiling[l.pure_dim];
internal_assert(l.pure_dim < c->size.size()) << "l.pure_dim " << l.pure_dim << " c->size.size() " << c->size.size() << "\n";
max_available *= c->size[l.pure_dim];
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/autoschedulers/anderson2021/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function(add_anderson2021_test NAME)

add_test(NAME ${NAME}
COMMAND ${ARGS_COMMAND})
add_dependencies(${NAME} Halide::Anderson2021)
set_tests_properties(${NAME}
PROPERTIES
LABELS "${ARGS_LABELS}"
Expand Down Expand Up @@ -79,7 +80,7 @@ add_anderson2021_test(anderson2021_demo_included_schedule_file

add_executable(anderson2021_test_apps_autoscheduler test.cpp)
target_link_libraries(anderson2021_test_apps_autoscheduler PRIVATE Halide::Halide Halide::Tools ${CMAKE_DL_LIBS})
add_dependencies(anderson2021_test_apps_autoscheduler Halide_Anderson2021)
add_dependencies(anderson2021_test_apps_autoscheduler Halide::Anderson2021)

add_anderson2021_test(anderson2021_test_apps_autoscheduler
COMMAND anderson2021_test_apps_autoscheduler $<TARGET_FILE:Halide_Anderson2021>
Expand Down
Loading