Update Kokkos library in LAMMPS to v4.6.0
This commit is contained in:
@ -24,6 +24,7 @@ KOKKOS_DEVICES = "OpenMP"
|
||||
KOKKOS_ARCH = "SNB"
|
||||
endif
|
||||
|
||||
KOKKOS_USE_DEPRECATED_MAKEFILES=1
|
||||
|
||||
DEPFLAGS = -M
|
||||
|
||||
|
||||
@ -94,25 +94,25 @@ int main(int argc, char* args[]) {
|
||||
Kokkos::Timer timer;
|
||||
Kokkos::parallel_for(size,
|
||||
generate_random<Kokkos::Random_XorShift64_Pool<> >(
|
||||
vals.d_view, rand_pool64, samples));
|
||||
vals.view_device(), rand_pool64, samples));
|
||||
Kokkos::fence();
|
||||
|
||||
timer.reset();
|
||||
Kokkos::parallel_for(size,
|
||||
generate_random<Kokkos::Random_XorShift64_Pool<> >(
|
||||
vals.d_view, rand_pool64, samples));
|
||||
vals.view_device(), rand_pool64, samples));
|
||||
Kokkos::fence();
|
||||
double time_64 = timer.seconds();
|
||||
|
||||
Kokkos::parallel_for(size,
|
||||
generate_random<Kokkos::Random_XorShift1024_Pool<> >(
|
||||
vals.d_view, rand_pool1024, samples));
|
||||
vals.view_device(), rand_pool1024, samples));
|
||||
Kokkos::fence();
|
||||
|
||||
timer.reset();
|
||||
Kokkos::parallel_for(size,
|
||||
generate_random<Kokkos::Random_XorShift1024_Pool<> >(
|
||||
vals.d_view, rand_pool1024, samples));
|
||||
vals.view_device(), rand_pool1024, samples));
|
||||
Kokkos::fence();
|
||||
double time_1024 = timer.seconds();
|
||||
|
||||
@ -121,7 +121,7 @@ int main(int argc, char* args[]) {
|
||||
printf("#Time XorShift1024*: %e %e\n", time_1024,
|
||||
1.0e-9 * samples * size / time_1024);
|
||||
|
||||
Kokkos::deep_copy(vals.h_view, vals.d_view);
|
||||
Kokkos::deep_copy(vals.view_host(), vals.view_device());
|
||||
}
|
||||
Kokkos::finalize();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user