HiRep 0.1
Loading...
Searching...
No Matches
global_gpu.h File Reference

Global variables need to be declared once in the main program and then again as extern variables in the files that use them. This can be achieved by just including this header with any other modification. A macro will automatically declare the variable in the main program without the extern modifier and with it everywhere else. More...

#include "core_utils.h"
#include "gpu.h"
#include "geometry.h"
Include dependency graph for global_gpu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

__device__ __constant__ int T_EXT_GPU
 
__device__ __constant__ int X_EXT_GPU
 
__device__ __constant__ int Y_EXT_GPU
 
__device__ __constant__ int Z_EXT_GPU
 
__device__ __constant__ int T_GPU
 
__device__ __constant__ int X_GPU
 
__device__ __constant__ int Y_GPU
 
__device__ __constant__ int Z_GPU
 
__device__ __constant__ int UP_MASK
 
__device__ __constant__ int DN_MASK
 
__device__ __constant__ int T_MASK
 
__device__ __constant__ int X_MASK
 
__device__ __constant__ int Y_MASK
 
__device__ __constant__ int Z_MASK
 

Detailed Description

Global variables need to be declared once in the main program and then again as extern variables in the files that use them. This can be achieved by just including this header with any other modification. A macro will automatically declare the variable in the main program without the extern modifier and with it everywhere else.