Updating Kokkos lib
This commit is contained in:
@ -79,7 +79,7 @@ int main (int narg, char* args[]) {
|
||||
int sum = 0;
|
||||
// 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)
|
||||
parallel_reduce (policy, KOKKOS_LAMBDA (const team_member& thread, int& lsum) {
|
||||
lsum += 1;
|
||||
// TeamPolicy<>::member_type provides functions to query the
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
/*
|
||||
//@HEADER
|
||||
// ************************************************************************
|
||||
//
|
||||
//
|
||||
// Kokkos v. 2.0
|
||||
// Copyright (2014) Sandia Corporation
|
||||
//
|
||||
//
|
||||
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
|
||||
// the U.S. Government retains certain rights in this software.
|
||||
//
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
@ -36,7 +36,7 @@
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Questions? Contact H. Carter Edwards (hcedwar@sandia.gov)
|
||||
//
|
||||
//
|
||||
// ************************************************************************
|
||||
//@HEADER
|
||||
*/
|
||||
@ -45,7 +45,6 @@
|
||||
#include <Kokkos_Random.hpp>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef KOKKOS_HAVE_CXX11
|
||||
|
||||
// The TeamPolicy actually supports 3D parallelism: Teams, Threads, Vector
|
||||
// Kokkos::parallel_{for/reduce/scan} calls can be completely free nested.
|
||||
@ -159,4 +158,3 @@ int main(int narg, char* args[]) {
|
||||
Kokkos::finalize();
|
||||
}
|
||||
|
||||
#endif //KOKKOS_HAVE_CXX11
|
||||
|
||||
Reference in New Issue
Block a user