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

Convert Buffer<> usage in test/generators to use static dimensions #6592

Merged
merged 5 commits into from
Jan 31, 2022

Conversation

steven-johnson
Copy link
Contributor

...where it seems sensible to do so, that is.

(also test/integration since it's small)

- Buffer needed to make some methods constexpr, and also had a broken return value for `as<>()`
- Various templated methods needed to add `int Dims` as a parameter
- Generator::add_input() and add_output() needed specializations for static-buffer types
- sliced() and embedded() should use the default values for InClassDimStorage
- halide_image_io should use a named constant
...where it seems sensible to do so, that is.

(also test/integration since it's small)
Base automatically changed from srj/static-buffer-fixes to master January 27, 2022 17:46
@steven-johnson
Copy link
Contributor Author

Monday Morning Review Ping

@steven-johnson steven-johnson merged commit b9a4cb3 into master Jan 31, 2022
@steven-johnson steven-johnson deleted the srj/static-buffers-generators branch January 31, 2022 21:30
jrprice pushed a commit to jrprice/Halide that referenced this pull request Feb 4, 2022
…alide#6592)

* Various fixes to static-dimensioned Buffer

- Buffer needed to make some methods constexpr, and also had a broken return value for `as<>()`
- Various templated methods needed to add `int Dims` as a parameter
- Generator::add_input() and add_output() needed specializations for static-buffer types
- sliced() and embedded() should use the default values for InClassDimStorage
- halide_image_io should use a named constant

* Convert Buffer<> usage in test/generators to use static dimensions

...where it seems sensible to do so, that is.

(also test/integration since it's small)

* Update Generator.h
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