Update Kokkos library in LAMMPS to v4.5.0
This commit is contained in:
@ -615,7 +615,7 @@ template <class DeviceType>
|
||||
struct Random_UniqueIndex {
|
||||
using locks_view_type = View<int**, DeviceType>;
|
||||
KOKKOS_FUNCTION
|
||||
static int get_state_idx(const locks_view_type) {
|
||||
static int get_state_idx(const locks_view_type&) {
|
||||
KOKKOS_IF_ON_HOST(
|
||||
(return DeviceType::execution_space::impl_hardware_thread_id();))
|
||||
|
||||
@ -665,17 +665,16 @@ struct Random_UniqueIndex<
|
||||
|
||||
#ifdef KOKKOS_ENABLE_SYCL
|
||||
template <class MemorySpace>
|
||||
struct Random_UniqueIndex<
|
||||
Kokkos::Device<Kokkos::Experimental::SYCL, MemorySpace>> {
|
||||
struct Random_UniqueIndex<Kokkos::Device<Kokkos::SYCL, MemorySpace>> {
|
||||
using locks_view_type =
|
||||
View<int**, Kokkos::Device<Kokkos::Experimental::SYCL, MemorySpace>>;
|
||||
View<int**, Kokkos::Device<Kokkos::SYCL, MemorySpace>>;
|
||||
KOKKOS_FUNCTION
|
||||
static int get_state_idx(const locks_view_type& locks_) {
|
||||
auto item = sycl::ext::oneapi::experimental::this_nd_item<3>();
|
||||
std::size_t threadIdx[3] = {item.get_local_id(2), item.get_local_id(1),
|
||||
item.get_local_id(0)};
|
||||
std::size_t blockIdx[3] = {item.get_group(2), item.get_group(1),
|
||||
item.get_group(0)};
|
||||
item.get_group(0)};
|
||||
std::size_t blockDim[3] = {item.get_local_range(2), item.get_local_range(1),
|
||||
item.get_local_range(0)};
|
||||
std::size_t gridDim[3] = {
|
||||
@ -1121,7 +1120,7 @@ class Random_XorShift1024_Pool {
|
||||
using execution_space = typename device_type::execution_space;
|
||||
using locks_type = View<int**, device_type>;
|
||||
using int_view_type = View<int**, device_type>;
|
||||
using state_data_type = View<uint64_t * [16], device_type>;
|
||||
using state_data_type = View<uint64_t* [16], device_type>;
|
||||
|
||||
locks_type locks_ = {};
|
||||
state_data_type state_ = {};
|
||||
|
||||
Reference in New Issue
Block a user