QMCPACK
qmc_allocator_traits< qmcplusplus::SYCLAllocator< T > > Struct Template Reference
+ Collaboration diagram for qmc_allocator_traits< qmcplusplus::SYCLAllocator< T > >:

Static Public Member Functions

static void fill_n (T *ptr, size_t n, const T &value)
 
static void updateTo (SYCLAllocator< T > &alloc, T *host_ptr, size_t n)
 
static void updateFrom (SYCLAllocator< T > &alloc, T *host_ptr, size_t n)
 

Static Public Attributes

static const bool is_host_accessible = false
 
static const bool is_dual_space = false
 

Detailed Description

template<typename T>
struct qmcplusplus::qmc_allocator_traits< qmcplusplus::SYCLAllocator< T > >

Definition at line 187 of file SYCLallocator.hpp.

Member Function Documentation

◆ fill_n()

static void fill_n ( T *  ptr,
size_t  n,
const T &  value 
)
inlinestatic

Definition at line 191 of file SYCLallocator.hpp.

192  {
193  //THINK
194  //qmcplusplus::SYCLfill_n(ptr, n, value);
195  }

◆ updateFrom()

static void updateFrom ( SYCLAllocator< T > &  alloc,
T *  host_ptr,
size_t  n 
)
inlinestatic

Definition at line 202 of file SYCLallocator.hpp.

References SYCLAllocator< T, ALIGN >::copyFromDevice(), and qmcplusplus::n.

203  {
204  T* device_ptr = alloc.getDevicePtr(host_ptr);
205  alloc.copyFromDevice(host_ptr, device_ptr, n);
206  }
void copyFromDevice(T *host_ptr, T *device_ptr, size_t n)

◆ updateTo()

static void updateTo ( SYCLAllocator< T > &  alloc,
T *  host_ptr,
size_t  n 
)
inlinestatic

Definition at line 196 of file SYCLallocator.hpp.

References SYCLAllocator< T, ALIGN >::copyToDevice(), and qmcplusplus::n.

197  {
198  T* device_ptr = alloc.getDevicePtr(host_ptr);
199  alloc.copyToDevice(device_ptr, host_ptr, n);
200  }
void copyToDevice(T *device_ptr, T *host_ptr, size_t n)

Member Data Documentation

◆ is_dual_space

const bool is_dual_space = false
static

Definition at line 190 of file SYCLallocator.hpp.

◆ is_host_accessible

const bool is_host_accessible = false
static

Definition at line 189 of file SYCLallocator.hpp.


The documentation for this struct was generated from the following file: