VisionCpp  0.0.1
Static Public Member Functions | List of all members
visioncpp::internal::CreateSyclBuffer< LeafType, ElemType, Scalar, VisionMem, RNG > Struct Template Reference

This class is used to instantiate the sycl memory based on the memory types. More...

#include <memory.hpp>

Collaboration diagram for visioncpp::internal::CreateSyclBuffer< LeafType, ElemType, Scalar, VisionMem, RNG >:

Static Public Member Functions

static void create_buffer (std::shared_ptr< VisionMem > &ptr, Scalar *dt, RNG rng)
 function create_buffer More...
 
static void create_buffer (std::shared_ptr< VisionMem > &ptr, RNG rng)
 function create_buffer More...
 

Detailed Description

template<size_t LeafType, typename ElemType, typename Scalar, typename VisionMem, typename RNG>
struct visioncpp::internal::CreateSyclBuffer< LeafType, ElemType, Scalar, VisionMem, RNG >

This class is used to instantiate the sycl memory based on the memory types.

template parameters:

Template Parameters
LeafTypedetermines the memory type
ElemType: determines the type of the element in each memory
Scalar: determines the type of each channel of each element
VisionMemrepresent the type of the memory created by using SyclMem
RNG: the sycl range type for creating memory

Definition at line 328 of file memory.hpp.

Member Function Documentation

◆ create_buffer() [1/2]

template<size_t LeafType, typename ElemType , typename Scalar , typename VisionMem , typename RNG >
static void visioncpp::internal::CreateSyclBuffer< LeafType, ElemType, Scalar, VisionMem, RNG >::create_buffer ( std::shared_ptr< VisionMem > &  ptr,
RNG  rng 
)
inlinestatic

function create_buffer

This function is used to create a device only buffer when there is no host pointer allocated for synchronization. parameters:

Parameters
ptr: shared_ptr containing the VisionMem
rng: the sycl range for creating buffer
Returns
void

Definition at line 350 of file memory.hpp.

◆ create_buffer() [2/2]

template<size_t LeafType, typename ElemType , typename Scalar , typename VisionMem , typename RNG >
static void visioncpp::internal::CreateSyclBuffer< LeafType, ElemType, Scalar, VisionMem, RNG >::create_buffer ( std::shared_ptr< VisionMem > &  ptr,
Scalar *  dt,
RNG  rng 
)
inlinestatic

function create_buffer

This function is used to create a sycl buffer when the host memory allocated for synchronization. parameters:

Parameters
ptr: shared_ptr containing the VisionMem
dt: the input pointer for creating buffer
rng: the sycl range for creating buffer
Returns
void

Definition at line 337 of file memory.hpp.

Referenced by visioncpp::internal::create_sycl_buffer().

Here is the caller graph for this function:

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