-
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
KOKKOS_RESTRICT... #2038
Comments
We would need to add a CMake test for this, but it's not hard:
|
@kyungjoo-kim thanks for adding this issue, I am in favor of allowing restrict in kokkos/kokkos-kernels. It is often useful for vectorization. |
@lucbv The above CMake test should work fine for any compiler. |
You need to check which restrict is supported and if flags are needed to enable it. If memory serves, the compilers don’t all agree on how this is written. |
@nmhamster I don't know how to do that in Kokkos' raw Makefiles-based build system, but the above CMake test could be modified easily enough to cover variations on |
When I have this kind of problem (cmake can test certain compiler options while makefile cannot do so), I just give a overriding option to users in the makefile configuration. Mostly, when people use makefile, we generally assume that those users know what they are doing. |
This is a duplicate of #1922, I'm going to close this one since it came later but we do want to start defining |
Why do we KOKKOS_RESTRICT is defined for Intel architectures ? NVCC suppports the
__restrict__
keyword, too.The text was updated successfully, but these errors were encountered: