Updating Kokkos lib to v2.03.05

This commit is contained in:
Stan Moore
2017-06-08 10:42:08 -06:00
parent 286d4f2743
commit 5c1d17d1c0
474 changed files with 50972 additions and 10897 deletions

View File

@ -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,13 +36,13 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Questions? Contact H. Carter Edwards (hcedwar@sandia.gov)
//
//
// ************************************************************************
//@HEADER
*/
#include <string.h>
#include <stdlib.h>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <sstream>
@ -53,7 +53,7 @@
int main( int argc , char ** argv )
{
#if defined( KOKKOS_ENABLE_CUDA ) || defined( KOKKOS_ENABLE_PTHREAD ) || defined( KOKKOS_ENABLE_OPENMP )
#if defined( KOKKOS_ENABLE_CUDA ) || defined( KOKKOS_ENABLE_THREADS ) || defined( KOKKOS_ENABLE_OPENMP )
Kokkos::initialize( argc , argv );
int length_array = 100000 ;
@ -73,7 +73,7 @@ int main( int argc , char ** argv )
}
#endif
#if defined( KOKKOS_ENABLE_PTHREAD )
#if defined( KOKKOS_ENABLE_THREADS )
if ( Kokkos::Threads::is_initialized() ) {
std::cout << "Kokkos::Threads" << std::endl ;
Example::sort_array< Kokkos::Threads >( length_array , length_total_array );