-
Notifications
You must be signed in to change notification settings - Fork 48
Frozen Functions Auto Opaque #361
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
Open
DoeringChristian
wants to merge
30
commits into
frozen-functions
Choose a base branch
from
frozen-functions-auto-opaque
base: frozen-functions
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+2,133
−381
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e7959aa
to
9a7115e
Compare
add7131
to
f0fc1e1
Compare
9a7115e
to
6bf85ea
Compare
3c02e8d
to
037ebbb
Compare
6bf85ea
to
8394a1d
Compare
15220b6
to
3d80462
Compare
9088b73
to
311766b
Compare
0c74597
to
cd22ea2
Compare
3788ee3
to
5423c59
Compare
4002fea
to
02b5351
Compare
5423c59
to
101b9eb
Compare
02b5351
to
5bab83a
Compare
5407807
to
b3fd365
Compare
2370547
to
de3135f
Compare
5e8be1c
to
2f3a144
Compare
2067ed1
to
c3073cc
Compare
f7b690d
to
89226d7
Compare
89226d7
to
8e24b63
Compare
8 tasks
0256452
to
9bf6811
Compare
21fb2e4
to
c851eab
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the following improvements to the frozen functions feature:
auto_opaque
flag is introduced to thedr.freeze
macro. If this flag is set (by default), the arguments of a frozen function are analyzed and if compatible only changing literal variables are made opaque. This significantly improves performance and memory usage of frozen functions.opaque_width
feature fromdrjit-core
is used in thedr.mean
function to determine the number of elements. This enables us to calldr.mean()
inside a frozen function while keeping using the correct width when the input width to frozen functions changes.