GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
variableMode.h File Reference
#include <cstdint>

Go to the source code of this file.

Enumerations

enum  VarLocation : uint8_t { VarLocation::HOST = (1 << 0), VarLocation::DEVICE = (1 << 1), VarLocation::ZERO_COPY = (1 << 2) }
 < Flags defining which memory space variables should be allocated in More...
 
enum  VarInit : uint8_t { VarInit::HOST = (1 << 3), VarInit::DEVICE = (1 << 4) }
 
enum  VarMode : uint8_t {
  VarMode::LOC_DEVICE_INIT_DEVICE = static_cast<uint8_t>(VarLocation::DEVICE) | static_cast<uint8_t>(VarInit::DEVICE), VarMode::LOC_HOST_DEVICE_INIT_HOST = static_cast<uint8_t>(VarLocation::HOST) | static_cast<uint8_t>(VarLocation::DEVICE) | static_cast<uint8_t>(VarInit::HOST), VarMode::LOC_HOST_DEVICE_INIT_DEVICE = static_cast<uint8_t>(VarLocation::HOST) | static_cast<uint8_t>(VarLocation::DEVICE) | static_cast<uint8_t>(VarInit::DEVICE), VarMode::LOC_ZERO_COPY_INIT_HOST = static_cast<uint8_t>(VarLocation::HOST) | static_cast<uint8_t>(VarLocation::DEVICE) | static_cast<uint8_t>(VarLocation::ZERO_COPY) | static_cast<uint8_t>(VarInit::HOST),
  VarMode::LOC_ZERO_COPY_INIT_DEVICE = static_cast<uint8_t>(VarLocation::HOST) | static_cast<uint8_t>(VarLocation::DEVICE) | static_cast<uint8_t>(VarLocation::ZERO_COPY) | static_cast<uint8_t>(VarInit::DEVICE)
}
 

Functions

bool operator& (VarMode mode, VarInit init)
 
bool operator& (VarMode mode, VarLocation location)
 

Enumeration Type Documentation

◆ VarInit

enum VarInit : uint8_t
strong
Enumerator
HOST 
DEVICE 

◆ VarLocation

enum VarLocation : uint8_t
strong

< Flags defining which memory space variables should be allocated in

Enumerator
HOST 
DEVICE 
ZERO_COPY 

◆ VarMode

enum VarMode : uint8_t
strong
Enumerator
LOC_DEVICE_INIT_DEVICE 
LOC_HOST_DEVICE_INIT_HOST 
LOC_HOST_DEVICE_INIT_DEVICE 
LOC_ZERO_COPY_INIT_HOST 
LOC_ZERO_COPY_INIT_DEVICE 

Function Documentation

◆ operator&() [1/2]

bool operator & ( VarMode  mode,
VarInit  init 
)
inline

◆ operator&() [2/2]

bool operator & ( VarMode  mode,
VarLocation  location 
)
inline