Skip to content

Add optional runtime H::R::Buffer access checks#6660

Merged
steven-johnson merged 6 commits intomainfrom
srj/optional-buffer-check
Mar 29, 2022
Merged

Add optional runtime H::R::Buffer access checks#6660
steven-johnson merged 6 commits intomainfrom
srj/optional-buffer-check

Conversation

@steven-johnson
Copy link
Copy Markdown
Contributor

This adds some optional assert() checks to HRB's operator() and friends. They are only enabled if HALIDE_RUNTIME_BUFFER_CHECK_INDICES=1 is defined at compile time.

Also fixes errors found by enabling these assertions and running tests.

This adds some optional `assert()` checks to HRB's `operator()` and friends. They are only enabled if `HALIDE_RUNTIME_BUFFER_CHECK_INDICES=1` is defined at compile time.

Also fixes errors found by enabling these assertions and running tests.
@steven-johnson steven-johnson requested a review from abadams March 25, 2022 23:58
@steven-johnson
Copy link
Copy Markdown
Contributor Author

Monday morning review ping

@steven-johnson steven-johnson merged commit ed3f4a7 into main Mar 29, 2022
@steven-johnson steven-johnson deleted the srj/optional-buffer-check branch March 29, 2022 00:10
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