SHOGUN  6.1.3
Classes | Macros
LinalgBackendGPUBase.h File Reference

Go to the source code of this file.

Classes

class  LinalgBackendGPUBase
 Base interface of generic GPU linalg methods and generic GPU memory transfer methods. More...
 

Macros

#define DEFINE_FOR_ALL_PTYPE(METHODNAME, Container)
 
#define BACKEND_GENERIC_TO_GPU(Type, Container)   virtual GPUMemoryBase<Type>* to_gpu(const Container<Type>&) const = 0;\
 
#define BACKEND_GENERIC_FROM_GPU(Type, Container)   virtual void from_gpu(const Container<Type>&, Type* data) const = 0;\
 

Macro Definition Documentation

#define BACKEND_GENERIC_FROM_GPU (   Type,
  Container 
)    virtual void from_gpu(const Container<Type>&, Type* data) const = 0;\

Wrapper method of fetching data from GPU memory.

See also
LinalgBackendBase::from_gpu

Definition at line 80 of file LinalgBackendGPUBase.h.

#define BACKEND_GENERIC_TO_GPU (   Type,
  Container 
)    virtual GPUMemoryBase<Type>* to_gpu(const Container<Type>&) const = 0;\

Wrapper method of Transferring data to GPU memory.

See also
LinalgBackendBase::to_gpu

Definition at line 68 of file LinalgBackendGPUBase.h.

#define DEFINE_FOR_ALL_PTYPE (   METHODNAME,
  Container 
)
Value:
METHODNAME(char, Container); \
METHODNAME(uint8_t, Container); \
METHODNAME(int16_t, Container); \
METHODNAME(uint16_t, Container); \
METHODNAME(int32_t, Container); \
METHODNAME(uint32_t, Container); \
METHODNAME(float32_t, Container); \
METHODNAME(float64_t, Container); \
double float64_t
Definition: common.h:60
float float32_t
Definition: common.h:59

Definition at line 53 of file LinalgBackendGPUBase.h.


SHOGUN Machine Learning Toolbox - Documentation