-
Notifications
You must be signed in to change notification settings - Fork 99
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
Protecting lambda functions, in case cuda is enabled. #85
Conversation
@@ -1582,6 +1581,7 @@ void kk_create_incidence_tranpose_matrix_from_lower_triangle( | |||
bool use_dynamic_scheduling = false, | |||
bool chunksize = 4){ | |||
|
|||
#ifndef KOKKOS_HAVE_CUDA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to KOKKOS_ENABLE_CUDA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's OK, but you may want to change the PR name (it's not about lambda functions, just about protecting CUDA-only code, right?).
…e done for OpenMP, Threads and Serial as well.
@mhoemmen |
I have changed the use of KOKKOS_HAVE_CUDA to KOKKOS_ENABLE_CUDA all over the package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found something that looks weird -- see comment.
@@ -358,7 +358,7 @@ int main (int argc, char ** argv){ | |||
#endif | |||
|
|||
|
|||
#if defined( KOKKOS_HAVE_CUDA1 ) | |||
#if defined( KOKKOS_ENABLE_CUDA1 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's "CUDA1"? Did you mean to type KOKKOS_ENABLE_CUDA
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jup thats a typo we overlooked ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not a typo, it is intentional to disable the code.
@mndevec Argh, I should have looked harder: what is |
@mhoemmen |
Should solve #72