GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
variableMode.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Standard C includes
4 #include <cstdint>
5 
6 //----------------------------------------------------------------------------
7 // Enumerations
8 //----------------------------------------------------------------------------
10 enum class VarLocation : uint8_t
11 {
12  HOST = (1 << 0),
13  DEVICE = (1 << 1),
14  ZERO_COPY = (1 << 2),
15 
18 };
19 
20 //----------------------------------------------------------------------------
21 // Operators
22 //----------------------------------------------------------------------------
23 inline bool operator & (VarLocation locA, VarLocation locB)
24 {
25  return (static_cast<uint8_t>(locA) & static_cast<uint8_t>(locB)) != 0;
26 }
bool operator&(VarLocation locA, VarLocation locB)
Definition: variableMode.h:23
VarLocation
< Flags defining which memory space variables should be allocated in
Definition: variableMode.h:10