Update Kokkos library to v2.03.13

This commit is contained in:
Stan Moore
2017-07-31 10:34:21 -06:00
parent 6d0a228624
commit 13f2d39f55
171 changed files with 44039 additions and 2807 deletions

View File

@ -138,7 +138,16 @@ int main(int argc, char *argv[])
#endif
#ifdef KOKKOS_ENABLE_OPENMP
Kokkos::OpenMP::initialize( threads_count );
int num_threads = 0;
#pragma omp parallel
{
#pragma omp atomic
++num_threads;
}
if( num_threads > 3 ) {
num_threads = std::max(4, num_threads/4);
}
Kokkos::OpenMP::initialize( num_threads );
num_errors += G2L::run_openmp(num_ids,num_find_iterations);
Kokkos::OpenMP::finalize();
#endif