Skip to content

Conversation

@steven-johnson
Copy link
Contributor

The apps were pretty old; none used Generators (though they really should have); most of them had very limited scheduling options. I updated all of them based on the equivalent C++ app, moved them to be Generator based (and self-contained instead of mixed in with the tests), and nuked the erode app entirely since it was of dubious use and had no C++ counterpart. Also formatted all of them with Black (https://github.com/psf/black), which is one of most popular Python formatters. The goal here is to ensure that the apps here are good examples of "best practices" for Halide Python use as of Halide 15.

@steven-johnson steven-johnson added backport me This change should be backported to release versions python Issues related to Halide/Python interop labels Oct 28, 2022
@steven-johnson
Copy link
Contributor Author

Monday Morning Review Ping

@abadams
Copy link
Member

abadams commented Oct 31, 2022

Are these apps run in CI? I can't figure out which builder does it.

@steven-johnson
Copy link
Contributor Author

Are these apps run in CI? I can't figure out which builder does it.

Yes, anything that runs the python tests exercises these.

@steven-johnson steven-johnson merged commit 4987365 into main Oct 31, 2022
steven-johnson added a commit that referenced this pull request Oct 31, 2022
* apps

* wip

* WIP 2

* Fix comments

* _GPU_SCHEDULE_ENUM_MAP

* Update blur_generator.py

* Add hl.funcs, hl.vars, plus formatting tweaks
steven-johnson added a commit that referenced this pull request Nov 1, 2022
* Rewrite python_bindings/apps (#7133)
* Apply 'Black' formatter to py/test/correctness and py/test/generators (#7135)
* halide.imageio needs to support arbitrary bufferviews (#7137)
* GitHub Workflows security hardening (#7136)
* Give pip.yml permission to read packages (#7139)
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* apps

* wip

* WIP 2

* Fix comments

* _GPU_SCHEDULE_ENUM_MAP

* Update blur_generator.py

* Add hl.funcs, hl.vars, plus formatting tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport me This change should be backported to release versions python Issues related to Halide/Python interop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants