Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization measurement in gases and semiconductors
Loading...
Searching...
No Matches
HelperMacros.hh
Go to the documentation of this file.
1#if defined(GARFIELD_CLASS_NAME)
2#undef GARFIELD_CLASS_NAME
3#endif
4
5#if defined(__GPUCOMPILE__)
6#define GARFIELD_CLASS_NAME(name) name##GPU
7#undef __DEVICE__
8#define __DEVICE__ __device__
9#else
10#define GARFIELD_CLASS_NAME(name) name
11#undef __DEVICE__
12#define __DEVICE__
13#endif