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

__restrict__ everything #19

Open
frostedoyster opened this issue Nov 17, 2023 · 1 comment
Open

__restrict__ everything #19

frostedoyster opened this issue Nov 17, 2023 · 1 comment

Comments

@frostedoyster
Copy link
Collaborator

As mentioned in #7, it might be beneficial to declare all pointers in all functions as __restrict__. To be tested in a new PR

@Luthaf
Copy link
Contributor

Luthaf commented Nov 20, 2023

I'm not sure whether compiler propagate restrict annotations in the backend when doing

void foo(double* __restrict__ b) {
    double* a = b;
}

If they don't, adding explicit annotations might help a bit with optimizations.

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

2 participants