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

Should ParamMap be Deprecated/Removed? #7121

Open
steven-johnson opened this issue Oct 25, 2022 · 0 comments
Open

Should ParamMap be Deprecated/Removed? #7121

steven-johnson opened this issue Oct 25, 2022 · 0 comments

Comments

@steven-johnson
Copy link
Contributor

ParamMap was added years ago as a way to provide thread-safety when using realize() and friends with the JIT. The introduction of compile_to_callable() in Halide 15 provides an alternate (and arguably better/cleaner) way to accomplish the same thing; therefore, I'd argue that we should consider a deprecation/removal plan for ParamMap. Would love to hear feedback from other folks on this. (Especially if use ParamMap, either now or in the past, of course.)

steven-johnson added a commit that referenced this issue Feb 15, 2023
This PR proposes to remove ParamMap entirely for Halide 16; it was added to provide a threadsafe way to provide parameteres to the JIT, but `compile_to_callable()` now does this in a much less intrusive way.

Normally I'd propose deprecating something like this first (eg via ifdef), but in this case it would be extremely intrusive to do so, so this PR just rips off the band-aid and removes it entirely -- feedback welcome on this.
steven-johnson added a commit that referenced this issue Feb 15, 2023
This PR deprecates ParamMap for Halide 16, with the plan of removing it entirely for Halide 17; it was added to provide a threadsafe way to provide parameteres to the JIT, but `compile_to_callable()` now does this in a much less intrusive way.
steven-johnson added a commit that referenced this issue Apr 13, 2023
* Deprecate ParamMap (#7121)

This PR deprecates ParamMap for Halide 16, with the plan of removing it entirely for Halide 17; it was added to provide a threadsafe way to provide parameteres to the JIT, but `compile_to_callable()` now does this in a much less intrusive way.

* Updated comments, removed mutexes (mutices?)

* formatting

* Go back to HALIDE_ATTRIBUTE_DEPRECATED
ardier pushed a commit to ardier/Halide-mutation that referenced this issue Mar 3, 2024
* Deprecate ParamMap (halide#7121)

This PR deprecates ParamMap for Halide 16, with the plan of removing it entirely for Halide 17; it was added to provide a threadsafe way to provide parameteres to the JIT, but `compile_to_callable()` now does this in a much less intrusive way.

* Updated comments, removed mutexes (mutices?)

* formatting

* Go back to HALIDE_ATTRIBUTE_DEPRECATED
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

No branches or pull requests

1 participant