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
16
HOST_DEVICE
=
HOST
|
DEVICE
,
17
HOST_DEVICE_ZERO_COPY
=
HOST
|
DEVICE
|
ZERO_COPY
,
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
}
operator&
bool operator&(VarLocation locA, VarLocation locB)
Definition:
variableMode.h:23
VarLocation
VarLocation
< Flags defining which memory space variables should be allocated in
Definition:
variableMode.h:10
VarLocation::ZERO_COPY
VarLocation::HOST_DEVICE_ZERO_COPY
VarLocation::HOST_DEVICE
VarLocation::HOST
VarLocation::DEVICE
include
genn
genn
variableMode.h
Generated on Wed Oct 11 2023 10:51:15 for GeNN by
1.8.13