xpu
xpu::queue Class Reference

command queue for a device. More...

Public Member Functions

 queue ()
 
 queue (device)
 
template<typename T >
void copy (buffer< T >, direction)
 
template<typename T >
void copy (const T *from, T *to, size_t size)
 
void memcpy (void *dst, const void *src, size_t size_bytes)
 
void memset (void *dst, int value, size_t size_bytes)
 
template<typename T >
void memset (buffer< T >, int value)
 
template<typename Kernel , typename... Args>
void launch (grid params, Args &&... args)
 
void wait ()
 

Detailed Description

command queue for a device.

Constructor & Destructor Documentation

◆ queue() [1/2]

xpu::queue::queue ( )

Construct a queue for the standard device set via the XPU_DEVICE environment variable.

◆ queue() [2/2]

xpu::queue::queue ( device  )
explicit

Construct a queue for the given device.

Member Function Documentation

◆ copy() [1/2]

template<typename T >
void xpu::queue::copy ( buffer< T >  ,
direction   
)

◆ copy() [2/2]

template<typename T >
void xpu::queue::copy ( const T *  from,
T *  to,
size_t  size 
)
inline

◆ launch()

template<typename Kernel , typename... Args>
void xpu::queue::launch ( grid  params,
Args &&...  args 
)

◆ memcpy()

void xpu::queue::memcpy ( void *  dst,
const void *  src,
size_t  size_bytes 
)

◆ memset() [1/2]

template<typename T >
void xpu::queue::memset ( buffer< T >  ,
int  value 
)

◆ memset() [2/2]

void xpu::queue::memset ( void *  dst,
int  value,
size_t  size_bytes 
)

◆ wait()

void xpu::queue::wait ( )

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