Update Kokkos library in LAMMPS to v3.7.0

This commit is contained in:
Stan Gerald Moore
2022-10-04 14:04:40 -06:00
parent dd072f7e08
commit f9f9e44f2d
653 changed files with 41432 additions and 33597 deletions

View File

@ -50,9 +50,10 @@
static_assert(
std::is_same<
Kokkos::Experimental::python_view_type_t<Kokkos::View<double*>>,
Kokkos::View<
double*, typename Kokkos::DefaultExecutionSpace::array_layout,
typename Kokkos::DefaultExecutionSpace::memory_space>>::value,
Kokkos::View<double*,
typename Kokkos::DefaultExecutionSpace::array_layout,
typename Kokkos::DefaultExecutionSpace::memory_space,
Kokkos::Experimental::DefaultViewHooks>>::value,
"Error! Unexpected python_view_type for: View");
// DynRankView
@ -69,9 +70,10 @@ static_assert(
std::is_same<
Kokkos::Experimental::python_view_type_t<
Kokkos::View<double*, Kokkos::DefaultExecutionSpace>>,
Kokkos::View<
double*, typename Kokkos::DefaultExecutionSpace::array_layout,
typename Kokkos::DefaultExecutionSpace::memory_space>>::value,
Kokkos::View<double*,
typename Kokkos::DefaultExecutionSpace::array_layout,
typename Kokkos::DefaultExecutionSpace::memory_space,
Kokkos::Experimental::DefaultViewHooks>>::value,
"Error! Unexpected python_view_type for: View + Execution Space");
// DynRankView + Execution Space
@ -85,11 +87,12 @@ static_assert(
"Error! Unexpected python_view_type for: DynRankView + Execution Space");
// View + Memory space
static_assert(std::is_same<Kokkos::Experimental::python_view_type_t<
Kokkos::View<int64_t*, Kokkos::HostSpace>>,
Kokkos::View<int64_t*, Kokkos::LayoutRight,
Kokkos::HostSpace>>::value,
"Error! Unexpected python_view_type for: View + Memory space");
static_assert(
std::is_same<Kokkos::Experimental::python_view_type_t<
Kokkos::View<int64_t*, Kokkos::HostSpace>>,
Kokkos::View<int64_t*, Kokkos::LayoutRight, Kokkos::HostSpace,
Kokkos::Experimental::DefaultViewHooks>>::value,
"Error! Unexpected python_view_type for: View + Memory space");
// DynRankView + Memory space
static_assert(
@ -105,8 +108,8 @@ static_assert(
Kokkos::Experimental::python_view_type_t<Kokkos::View<
int**, Kokkos::LayoutLeft, Kokkos::DefaultExecutionSpace>>,
Kokkos::View<int**, Kokkos::LayoutLeft,
typename Kokkos::DefaultExecutionSpace::memory_space>>::
value,
typename Kokkos::DefaultExecutionSpace::memory_space,
Kokkos::Experimental::DefaultViewHooks>>::value,
"Error! Unexpected python_view_type for: View + Layout + Execution space");
// DynRankView + Layout + Execution space
@ -121,10 +124,10 @@ static_assert(
// View + Layout + Memory Space
static_assert(
std::is_same<
Kokkos::Experimental::python_view_type_t<
Kokkos::View<uint32_t**, Kokkos::LayoutLeft, Kokkos::HostSpace>>,
Kokkos::View<uint32_t**, Kokkos::LayoutLeft, Kokkos::HostSpace>>::value,
std::is_same<Kokkos::Experimental::python_view_type_t<Kokkos::View<
uint32_t**, Kokkos::LayoutLeft, Kokkos::HostSpace>>,
Kokkos::View<uint32_t**, Kokkos::LayoutLeft, Kokkos::HostSpace,
Kokkos::Experimental::DefaultViewHooks>>::value,
"Error! Unexpected python_view_type for: View + Layout + Memory Space");
// DynRankView + Layout + Memory Space
@ -144,6 +147,7 @@ static_assert(
Kokkos::MemoryTraits<Kokkos::RandomAccess>>>,
Kokkos::View<float***, Kokkos::LayoutLeft,
typename Kokkos::DefaultHostExecutionSpace::memory_space,
Kokkos::Experimental::DefaultViewHooks,
Kokkos::MemoryTraits<Kokkos::RandomAccess>>>::value,
"Error! Unexpected python_view_type for: View + Layout + Execution space + "
"Memory Trait");