HiRep 0.1
Loading...
Searching...
No Matches
global_gpu.h
Go to the documentation of this file.
1/***************************************************************************\
2* Copyright (c) 2022, Claudio Pica, Sofie Martins *
3* All rights reserved. *
4\***************************************************************************/
5
16#ifndef GLOBAL_GPU_H
17#define GLOBAL_GPU_H
18
19#ifdef WITH_GPU
20
21#include "core_utils.h"
22#include "gpu.h"
23#include "geometry.h"
24
25GLB_VAR(__device__ __constant__ int, T_EXT_GPU);
26GLB_VAR(__device__ __constant__ int, X_EXT_GPU);
27GLB_VAR(__device__ __constant__ int, Y_EXT_GPU);
28GLB_VAR(__device__ __constant__ int, Z_EXT_GPU);
29GLB_VAR(__device__ __constant__ int, T_GPU);
30GLB_VAR(__device__ __constant__ int, X_GPU);
31GLB_VAR(__device__ __constant__ int, Y_GPU);
32GLB_VAR(__device__ __constant__ int, Z_GPU);
33
34GLB_VAR(__device__ __constant__ int, UP_MASK, = T_UP_MASK | X_UP_MASK | Y_UP_MASK | Z_UP_MASK);
35GLB_VAR(__device__ __constant__ int, DN_MASK, = T_DN_MASK | X_DN_MASK | Y_DN_MASK | Z_DN_MASK);
36GLB_VAR(__device__ __constant__ int, T_MASK, = T_UP_MASK | T_DN_MASK);
37GLB_VAR(__device__ __constant__ int, X_MASK, = X_UP_MASK | X_DN_MASK);
38GLB_VAR(__device__ __constant__ int, Y_MASK, = Y_UP_MASK | Y_DN_MASK);
39GLB_VAR(__device__ __constant__ int, Z_MASK, = Z_UP_MASK | Z_DN_MASK);
40
41#if defined(BC_T_THETA) || defined(BC_X_THETA) || defined(BC_Y_THETA) || defined(BC_Z_THETA)
42#include "hr_complex.h"
43GLB_VAR(__device__ __constant__ hr_complex, eitheta_gpu[4]);
44#endif
45
46#endif
47
48#endif
Macros to declare global variables.
This file contains information on the geometry of the local lattice, block decomposed geometry,...
Basic gpu imports and structs. Include this in files that define GPU logic.
Type definitions and macros for complex numbers.