Update Kokkos library in LAMMPS to v3.1

This commit is contained in:
Stan Moore
2020-04-16 09:06:08 -06:00
parent fa6922a182
commit ba8d043c7e
554 changed files with 24628 additions and 14871 deletions

View File

@ -8,11 +8,9 @@ KOKKOS_ADD_EXAMPLE_DIRECTORIES(06_simple_mdrangepolicy)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(Advanced_Views)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(Hierarchical_Parallelism)
IF (Kokkos_ENABLE_CXX11)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(01_hello_world_lambda)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(02_simple_reduce_lambda)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(03_simple_view_lambda)
ENDIF ()
KOKKOS_ADD_EXAMPLE_DIRECTORIES(01_hello_world_lambda)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(02_simple_reduce_lambda)
KOKKOS_ADD_EXAMPLE_DIRECTORIES(03_simple_view_lambda)

View File

@ -2,16 +2,11 @@ Build the examples by typing in each directory:
make -j 16
To specify a target device:
make openmp -j 16
make pthreads -j 16
make serial -j 16
make cuda -j 16
KOKKOS_DEVICES=OpenMP make -j 16
KOKKOS_DEVICES=Pthread make -j 16
KOKKOS_DEVICES=Serial make -j 16
KOKKOS_DEVICES=Cuda make -j 16
The lambda variants can not be build with CUDA=yes at the moment, since
CUDA does not support lambdas from the host.
Some of the advanced topics try to highlight performance impacts by timing
different variants of doing the same thing.
Also some of the advanced topics (in particular hierarchical parallelism)
require C++11 even with out using host side lambdas. CUDA 6.5 can be used
to compile those.