// CelerisLab/kernels/const.h #ifndef CONST_H #define CONST_H __constant__ int e[9][2] = {{0, 0}, {1, 0}, {0, 1}, {-1, 0}, {0, -1}, {1, 1}, {-1, 1}, {-1, -1}, {1, -1}}; __constant__ int opp[9] = {0, 3, 4, 1, 2, 7, 8, 5, 6}; __constant__ float w[9] = {4/9., 1/9., 1/9., 1/9., 1/9., 1/36., 1/36., 1/36., 1/36.}; #endif