GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
CodeGenerator::MemAlloc Class Reference

#include <backendBase.h>

Public Member Functions

size_t getHostBytes () const
 
size_t getDeviceBytes () const
 
size_t getZeroCopyBytes () const
 
size_t getHostMBytes () const
 
size_t getDeviceMBytes () const
 
size_t getZeroCopyMBytes () const
 
MemAllocoperator+= (const MemAlloc &rhs)
 

Static Public Member Functions

static MemAlloc zero ()
 
static MemAlloc host (size_t hostBytes)
 
static MemAlloc hostDevice (size_t bytes)
 
static MemAlloc device (size_t deviceBytes)
 
static MemAlloc zeroCopy (size_t zeroCopyBytes)
 

Friends

std::ostream & operator<< (std::ostream &out, const MemAlloc &m)
 
std::istream & operator>> (std::istream &in, MemAlloc &m)
 

Member Function Documentation

◆ device()

static MemAlloc CodeGenerator::MemAlloc::device ( size_t  deviceBytes)
inlinestatic

◆ getDeviceBytes()

size_t CodeGenerator::MemAlloc::getDeviceBytes ( ) const
inline

◆ getDeviceMBytes()

size_t CodeGenerator::MemAlloc::getDeviceMBytes ( ) const
inline

◆ getHostBytes()

size_t CodeGenerator::MemAlloc::getHostBytes ( ) const
inline

◆ getHostMBytes()

size_t CodeGenerator::MemAlloc::getHostMBytes ( ) const
inline

◆ getZeroCopyBytes()

size_t CodeGenerator::MemAlloc::getZeroCopyBytes ( ) const
inline

◆ getZeroCopyMBytes()

size_t CodeGenerator::MemAlloc::getZeroCopyMBytes ( ) const
inline

◆ host()

static MemAlloc CodeGenerator::MemAlloc::host ( size_t  hostBytes)
inlinestatic

◆ hostDevice()

static MemAlloc CodeGenerator::MemAlloc::hostDevice ( size_t  bytes)
inlinestatic

◆ operator+=()

MemAlloc& CodeGenerator::MemAlloc::operator+= ( const MemAlloc rhs)
inline

◆ zero()

static MemAlloc CodeGenerator::MemAlloc::zero ( )
inlinestatic

◆ zeroCopy()

static MemAlloc CodeGenerator::MemAlloc::zeroCopy ( size_t  zeroCopyBytes)
inlinestatic

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const MemAlloc m 
)
friend

◆ operator>>

std::istream& operator>> ( std::istream &  in,
MemAlloc m 
)
friend

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