-
Notifications
You must be signed in to change notification settings - Fork 407
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 not honored for non-intel compilers #1922
Comments
It can't be independent of compiler, since not all compilers know restrict. We need an enumerated list of compilers who know it. |
Ah, my mistake. I was thinking that Out of interest which compilers don't know it? I'll update the PR to just do intel and GCC as those are the only ones I've personally tested |
I found that nvcc, ibm should also use |
Cross-referencing PR #1923 |
change restrict keyword to always be emitted per issue #1922
The fix for this is now in |
Currently when using the
restrict
memory trait,KOKKOS_RESTRICT
is defined as empty whenKOKKOS_COMPILER_INTEL
is not found (i.e when using GCC).I propose that despite other compilers not having great restrict behavior, we change the code to generate the restrict keyword any way and let the compiler have the chance of making the optimization (better than just not generating it)
Impending PR will implement a change which always defines
KOKKOS_RESTRICT
as__restrict__
regardless of compilerThe text was updated successfully, but these errors were encountered: