GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSTypes.hh File Reference

Redefining types for OpenCL device and host. More...

#include <CL/cl.hpp>
Include dependency graph for GGEMSTypes.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GGsize2_t
 Structure storing 2 GGsize values. More...
 
struct  GGsize3_t
 Structure storing 3 GGsize values. More...
 

Macros

#define FALSE   0
 
#define TRUE   1
 
#define CL_HPP_TARGET_OPENCL_VERSION   120
 
#define CL_HPP_MINIMUM_OPENCL_VERSION   120
 
#define GGbool   cl_bool
 
#define GGchar   cl_char
 
#define GGchar2   cl_char2
 
#define GGchar3   cl_char3
 
#define GGchar4   cl_char4
 
#define GGchar8   cl_char8
 
#define GGchar16   cl_char16
 
#define GGuchar   cl_uchar
 
#define GGuchar2   cl_uchar2
 
#define GGuchar3   cl_uchar3
 
#define GGuchar4   cl_uchar4
 
#define GGuchar8   cl_uchar8
 
#define GGuchar16   cl_uchar16
 
#define GGshort   cl_short
 
#define GGshort2   cl_short2
 
#define GGshort3   cl_short3
 
#define GGshort4   cl_short4
 
#define GGshort8   cl_short8
 
#define GGshort16   cl_short16
 
#define GGushort   cl_ushort
 
#define GGushort2   cl_ushort2
 
#define GGushort3   cl_ushort3
 
#define GGushort4   cl_ushort4
 
#define GGushort8   cl_ushort8
 
#define GGushort16   cl_ushort16
 
#define GGint   cl_int
 
#define GGint2   cl_int2
 
#define GGint3   cl_int3
 
#define GGint4   cl_int4
 
#define GGint8   cl_int8
 
#define GGint16   cl_int16
 
#define GGuint   cl_uint
 
#define GGuint2   cl_uint2
 
#define GGuint3   cl_uint3
 
#define GGuint4   cl_uint4
 
#define GGuint8   cl_uint8
 
#define GGuint16   cl_uint16
 
#define GGlong   cl_long
 
#define GGlong2   cl_long2
 
#define GGlong3   cl_long3
 
#define GGlong4   cl_long4
 
#define GGlong8   cl_long8
 
#define GGlong16   cl_long16
 
#define GGulong   cl_ulong
 
#define GGulong2   cl_ulong2
 
#define GGulong3   cl_ulong3
 
#define GGulong4   cl_ulong4
 
#define GGulong8   cl_ulong8
 
#define GGulong16   cl_ulong16
 
#define GGsize   std::size_t
 
#define GGfloat   cl_float
 
#define GGfloat2   cl_float2
 
#define GGfloat3   cl_float3
 
#define GGfloat4   cl_float4
 
#define GGfloat8   cl_float8
 
#define GGfloat16   cl_float16
 
#define GGdouble   cl_double
 
#define GGdouble2   cl_double2
 
#define GGdouble3   cl_double3
 
#define GGdouble4   cl_double4
 
#define GGdouble8   cl_double8
 
#define GGdouble16   cl_double16
 
#define GGDosiType   GGfloat
 

Typedefs

typedef struct GGsize2_t GGsize2
 
typedef struct GGsize3_t GGsize3
 

Detailed Description

Redefining types for OpenCL device and host.

Author
Julien BERT julie.nosp@m.n.be.nosp@m.rt@un.nosp@m.iv-b.nosp@m.rest..nosp@m.fr
Didier BENOIT didie.nosp@m.r.be.nosp@m.noit@.nosp@m.inse.nosp@m.rm.fr
LaTIM, INSERM - U1101, Brest, FRANCE
Version
1.0
Date
Monday December 16, 2019

Definition in file GGEMSTypes.hh.

Macro Definition Documentation

◆ CL_HPP_MINIMUM_OPENCL_VERSION

#define CL_HPP_MINIMUM_OPENCL_VERSION   120

Minimum version of OpenCL

Definition at line 38 of file GGEMSTypes.hh.

◆ CL_HPP_TARGET_OPENCL_VERSION

#define CL_HPP_TARGET_OPENCL_VERSION   120

C++ OpenCL version 1.2 only

Definition at line 37 of file GGEMSTypes.hh.

◆ FALSE

#define FALSE   0

False for OpenCL

Definition at line 34 of file GGEMSTypes.hh.

◆ GGbool

#define GGbool   cl_bool

define a new type for cl_bool, not used in OpenCL

Definition at line 194 of file GGEMSTypes.hh.

◆ GGchar

#define GGchar   cl_char

define a new type for cl_char

Definition at line 196 of file GGEMSTypes.hh.

◆ GGchar16

#define GGchar16   cl_char16

define a new type for cl_char16

Definition at line 201 of file GGEMSTypes.hh.

◆ GGchar2

#define GGchar2   cl_char2

define a new type for cl_char2

Definition at line 197 of file GGEMSTypes.hh.

◆ GGchar3

#define GGchar3   cl_char3

define a new type for cl_char3

Definition at line 198 of file GGEMSTypes.hh.

◆ GGchar4

#define GGchar4   cl_char4

define a new type for cl_char4

Definition at line 199 of file GGEMSTypes.hh.

◆ GGchar8

#define GGchar8   cl_char8

define a new type for cl_char8

Definition at line 200 of file GGEMSTypes.hh.

◆ GGDosiType

#define GGDosiType   GGfloat

define GGDositype as a float, useful for dosimetry computation

Definition at line 290 of file GGEMSTypes.hh.

◆ GGdouble

#define GGdouble   cl_double

define a new type for cl_double

Definition at line 280 of file GGEMSTypes.hh.

◆ GGdouble16

#define GGdouble16   cl_double16

define a new type for cl_double16

Definition at line 285 of file GGEMSTypes.hh.

◆ GGdouble2

#define GGdouble2   cl_double2

define a new type for cl_double2

Definition at line 281 of file GGEMSTypes.hh.

◆ GGdouble3

#define GGdouble3   cl_double3

define a new type for cl_double3

Definition at line 282 of file GGEMSTypes.hh.

◆ GGdouble4

#define GGdouble4   cl_double4

define a new type for cl_double4

Definition at line 283 of file GGEMSTypes.hh.

◆ GGdouble8

#define GGdouble8   cl_double8

define a new type for cl_double8

Definition at line 284 of file GGEMSTypes.hh.

◆ GGfloat

#define GGfloat   cl_float

define a new type for cl_float

Definition at line 273 of file GGEMSTypes.hh.

◆ GGfloat16

#define GGfloat16   cl_float16

define a new type for cl_float16

Definition at line 278 of file GGEMSTypes.hh.

◆ GGfloat2

#define GGfloat2   cl_float2

define a new type for cl_float2

Definition at line 274 of file GGEMSTypes.hh.

◆ GGfloat3

#define GGfloat3   cl_float3

define a new type for cl_float3

Definition at line 275 of file GGEMSTypes.hh.

◆ GGfloat4

#define GGfloat4   cl_float4

define a new type for cl_float4

Definition at line 276 of file GGEMSTypes.hh.

◆ GGfloat8

#define GGfloat8   cl_float8

define a new type for cl_float8

Definition at line 277 of file GGEMSTypes.hh.

◆ GGint

#define GGint   cl_int

define a new type for cl_int

Definition at line 224 of file GGEMSTypes.hh.

◆ GGint16

#define GGint16   cl_int16

define a new type for cl_int16

Definition at line 229 of file GGEMSTypes.hh.

◆ GGint2

#define GGint2   cl_int2

define a new type for cl_int2

Definition at line 225 of file GGEMSTypes.hh.

◆ GGint3

#define GGint3   cl_int3

define a new type for cl_int3

Definition at line 226 of file GGEMSTypes.hh.

◆ GGint4

#define GGint4   cl_int4

define a new type for cl_int4

Definition at line 227 of file GGEMSTypes.hh.

◆ GGint8

#define GGint8   cl_int8

define a new type for cl_int8

Definition at line 228 of file GGEMSTypes.hh.

◆ GGlong

#define GGlong   cl_long

define a new type for cl_long

Definition at line 238 of file GGEMSTypes.hh.

◆ GGlong16

#define GGlong16   cl_long16

define a new type for cl_long16

Definition at line 243 of file GGEMSTypes.hh.

◆ GGlong2

#define GGlong2   cl_long2

define a new type for cl_long2

Definition at line 239 of file GGEMSTypes.hh.

◆ GGlong3

#define GGlong3   cl_long3

define a new type for cl_long3

Definition at line 240 of file GGEMSTypes.hh.

◆ GGlong4

#define GGlong4   cl_long4

define a new type for cl_long4

Definition at line 241 of file GGEMSTypes.hh.

◆ GGlong8

#define GGlong8   cl_long8

define a new type for cl_long8

Definition at line 242 of file GGEMSTypes.hh.

◆ GGshort

#define GGshort   cl_short

define a new type for cl_short

Definition at line 210 of file GGEMSTypes.hh.

◆ GGshort16

#define GGshort16   cl_short16

define a new type for cl_short16

Definition at line 215 of file GGEMSTypes.hh.

◆ GGshort2

#define GGshort2   cl_short2

define a new type for cl_short2

Definition at line 211 of file GGEMSTypes.hh.

◆ GGshort3

#define GGshort3   cl_short3

define a new type for cl_short3

Definition at line 212 of file GGEMSTypes.hh.

◆ GGshort4

#define GGshort4   cl_short4

define a new type for cl_short4

Definition at line 213 of file GGEMSTypes.hh.

◆ GGshort8

#define GGshort8   cl_short8

define a new type for cl_short8

Definition at line 214 of file GGEMSTypes.hh.

◆ GGsize

#define GGsize   std::size_t

define size for OpenCL, size_t is forbidden as kernel parameters

Definition at line 252 of file GGEMSTypes.hh.

◆ GGuchar

#define GGuchar   cl_uchar

define a new type for cl_uchar

Definition at line 203 of file GGEMSTypes.hh.

◆ GGuchar16

#define GGuchar16   cl_uchar16

define a new type for cl_uchar16

Definition at line 208 of file GGEMSTypes.hh.

◆ GGuchar2

#define GGuchar2   cl_uchar2

define a new type for cl_uchar2

Definition at line 204 of file GGEMSTypes.hh.

◆ GGuchar3

#define GGuchar3   cl_uchar3

define a new type for cl_uchar3

Definition at line 205 of file GGEMSTypes.hh.

◆ GGuchar4

#define GGuchar4   cl_uchar4

define a new type for cl_uchar4

Definition at line 206 of file GGEMSTypes.hh.

◆ GGuchar8

#define GGuchar8   cl_uchar8

define a new type for cl_uchar8

Definition at line 207 of file GGEMSTypes.hh.

◆ GGuint

#define GGuint   cl_uint

define a new type for cl_uint

Definition at line 231 of file GGEMSTypes.hh.

◆ GGuint16

#define GGuint16   cl_uint16

define a new type for cl_uint16

Definition at line 236 of file GGEMSTypes.hh.

◆ GGuint2

#define GGuint2   cl_uint2

define a new type for cl_uint2

Definition at line 232 of file GGEMSTypes.hh.

◆ GGuint3

#define GGuint3   cl_uint3

define a new type for cl_uint3

Definition at line 233 of file GGEMSTypes.hh.

◆ GGuint4

#define GGuint4   cl_uint4

define a new type for cl_uint4

Definition at line 234 of file GGEMSTypes.hh.

◆ GGuint8

#define GGuint8   cl_uint8

define a new type for cl_uint8

Definition at line 235 of file GGEMSTypes.hh.

◆ GGulong

#define GGulong   cl_ulong

define a new type for cl_ulong

Definition at line 245 of file GGEMSTypes.hh.

◆ GGulong16

#define GGulong16   cl_ulong16

define a new type for cl_ulong16

Definition at line 250 of file GGEMSTypes.hh.

◆ GGulong2

#define GGulong2   cl_ulong2

define a new type for cl_ulong2

Definition at line 246 of file GGEMSTypes.hh.

◆ GGulong3

#define GGulong3   cl_ulong3

define a new type for cl_ulong3

Definition at line 247 of file GGEMSTypes.hh.

◆ GGulong4

#define GGulong4   cl_ulong4

define a new type for cl_ulong4

Definition at line 248 of file GGEMSTypes.hh.

◆ GGulong8

#define GGulong8   cl_ulong8

define a new type for cl_ulong8

Definition at line 249 of file GGEMSTypes.hh.

◆ GGushort

#define GGushort   cl_ushort

define a new type for cl_ushort

Definition at line 217 of file GGEMSTypes.hh.

◆ GGushort16

#define GGushort16   cl_ushort16

define a new type for cl_ushort16

Definition at line 222 of file GGEMSTypes.hh.

◆ GGushort2

#define GGushort2   cl_ushort2

define a new type for cl_ushort2

Definition at line 218 of file GGEMSTypes.hh.

◆ GGushort3

#define GGushort3   cl_ushort3

define a new type for cl_ushort3

Definition at line 219 of file GGEMSTypes.hh.

◆ GGushort4

#define GGushort4   cl_ushort4

define a new type for cl_ushort4

Definition at line 220 of file GGEMSTypes.hh.

◆ GGushort8

#define GGushort8   cl_ushort8

define a new type for cl_ushort8

Definition at line 221 of file GGEMSTypes.hh.

◆ TRUE

#define TRUE   1

True for OpenCL

Definition at line 35 of file GGEMSTypes.hh.

Typedef Documentation

◆ GGsize2

typedef struct GGsize2_t GGsize2

Using C convention name of struct to C++ (_t deletion)

◆ GGsize3

typedef struct GGsize3_t GGsize3

Using C convention name of struct to C++ (_t deletion)