Skip to content

Fail if no_bounds_query specified for HL_JIT_TARGET#6489

Merged
steven-johnson merged 2 commits intomasterfrom
srj/jit-bounds-query
Dec 9, 2021
Merged

Fail if no_bounds_query specified for HL_JIT_TARGET#6489
steven-johnson merged 2 commits intomasterfrom
srj/jit-bounds-query

Conversation

@steven-johnson
Copy link
Copy Markdown
Contributor

JIT requires the use of bounds_query; disabling it will almost certainly fail in JIT mode, either with a confusing assert message, or a crash (if you also specify no_asserts). This adds a more useful failure message.

JIT requires the use of bounds_query; disabling it will almost certainly fail in JIT mode, either with a confusing assert message, or a crash (if you also specify no_asserts). This adds a more useful failure message.
Comment thread src/Target.cpp Outdated
<< "HL_JIT_TARGET was " << target << ". "
<< "Host is " << host.to_string() << ".\n";
user_assert(!t.has_feature(Target::NoBoundsQuery))
<< "The Halide JIT requires the use of bounds query, but HL_JIT_TARGET was specified with no_bunds_query: " << target;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bunds

@steven-johnson steven-johnson merged commit bcfd6af into master Dec 9, 2021
@steven-johnson steven-johnson deleted the srj/jit-bounds-query branch December 9, 2021 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants