Updating Kokkos lib
This commit is contained in:
@ -69,7 +69,7 @@ int main (int argc, char* argv[]) {
|
||||
// It also handles any other syntax needed for CUDA.
|
||||
// We also need to protect the usage of a lambda against compiling
|
||||
// with a backend which doesn't support it (i.e. Cuda 6.5/7.0).
|
||||
#if (KOKKOS_HAVE_CXX11_DISPATCH_LAMBDA)
|
||||
#if (KOKKOS_ENABLE_CXX11_DISPATCH_LAMBDA)
|
||||
Kokkos::parallel_reduce (n, KOKKOS_LAMBDA (const int i, int& lsum) {
|
||||
lsum += i*i;
|
||||
}, sum);
|
||||
@ -85,7 +85,7 @@ int main (int argc, char* argv[]) {
|
||||
printf ("Sum of squares of integers from 0 to %i, "
|
||||
"computed sequentially, is %i\n", n - 1, seqSum);
|
||||
Kokkos::finalize ();
|
||||
#if (KOKKOS_HAVE_CXX11_DISPATCH_LAMBDA)
|
||||
#if (KOKKOS_ENABLE_CXX11_DISPATCH_LAMBDA)
|
||||
return (sum == seqSum) ? 0 : -1;
|
||||
#else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user