Update Kokkos library in LAMMPS to v4.5.0
This commit is contained in:
@ -534,10 +534,10 @@ void fill_views_inc(ViewType view, ViewHostType host_view) {
|
||||
}
|
||||
|
||||
template <class ValueType, class ViewType>
|
||||
std::enable_if_t<!std::is_same<typename ViewType::traits::array_layout,
|
||||
Kokkos::LayoutStride>::value>
|
||||
std::enable_if_t<!std::is_same_v<typename ViewType::traits::array_layout,
|
||||
Kokkos::LayoutStride>>
|
||||
verify_values(ValueType expected, const ViewType view) {
|
||||
static_assert(std::is_same<ValueType, typename ViewType::value_type>::value,
|
||||
static_assert(std::is_same_v<ValueType, typename ViewType::value_type>,
|
||||
"Non-matching value types of view and reference value");
|
||||
auto view_h = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), view);
|
||||
for (std::size_t i = 0; i < view_h.extent(0); i++) {
|
||||
@ -546,10 +546,10 @@ verify_values(ValueType expected, const ViewType view) {
|
||||
}
|
||||
|
||||
template <class ValueType, class ViewType>
|
||||
std::enable_if_t<std::is_same<typename ViewType::traits::array_layout,
|
||||
Kokkos::LayoutStride>::value>
|
||||
std::enable_if_t<std::is_same_v<typename ViewType::traits::array_layout,
|
||||
Kokkos::LayoutStride>>
|
||||
verify_values(ValueType expected, const ViewType view) {
|
||||
static_assert(std::is_same<ValueType, typename ViewType::value_type>::value,
|
||||
static_assert(std::is_same_v<ValueType, typename ViewType::value_type>,
|
||||
"Non-matching value types of view and reference value");
|
||||
|
||||
using non_strided_view_t = Kokkos::View<typename ViewType::value_type*>;
|
||||
@ -566,11 +566,11 @@ verify_values(ValueType expected, const ViewType view) {
|
||||
}
|
||||
|
||||
template <class ViewType1, class ViewType2>
|
||||
std::enable_if_t<!std::is_same<typename ViewType2::traits::array_layout,
|
||||
Kokkos::LayoutStride>::value>
|
||||
std::enable_if_t<!std::is_same_v<typename ViewType2::traits::array_layout,
|
||||
Kokkos::LayoutStride>>
|
||||
compare_views(ViewType1 expected, const ViewType2 actual) {
|
||||
static_assert(std::is_same<typename ViewType1::value_type,
|
||||
typename ViewType2::value_type>::value,
|
||||
static_assert(std::is_same_v<typename ViewType1::value_type,
|
||||
typename ViewType2::value_type>,
|
||||
"Non-matching value types of expected and actual view");
|
||||
auto expected_h =
|
||||
Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), expected);
|
||||
@ -583,11 +583,11 @@ compare_views(ViewType1 expected, const ViewType2 actual) {
|
||||
}
|
||||
|
||||
template <class ViewType1, class ViewType2>
|
||||
std::enable_if_t<std::is_same<typename ViewType2::traits::array_layout,
|
||||
Kokkos::LayoutStride>::value>
|
||||
std::enable_if_t<std::is_same_v<typename ViewType2::traits::array_layout,
|
||||
Kokkos::LayoutStride>>
|
||||
compare_views(ViewType1 expected, const ViewType2 actual) {
|
||||
static_assert(std::is_same<typename ViewType1::value_type,
|
||||
typename ViewType2::value_type>::value,
|
||||
static_assert(std::is_same_v<typename ViewType1::value_type,
|
||||
typename ViewType2::value_type>,
|
||||
"Non-matching value types of expected and actual view");
|
||||
|
||||
using non_strided_view_t = Kokkos::View<typename ViewType2::value_type*>;
|
||||
|
||||
Reference in New Issue
Block a user