Skip to content

Commit e59fca3

Browse files
authored
Fixed issue appearing after latest merge (#88)
1 parent 29a6ac8 commit e59fca3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Include/Geometry/strided_reads_gpu.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,8 @@ __host__ __device__ __forceinline__ void write_assign_atomic_gpu(int stride, SIT
116116
int dim) {
117117
const int field_dim = sizeof(FIELD_TYPE) / sizeof(REAL);
118118
const int n_components = sizeof(SITE_TYPE) / sizeof(REAL);
119-
#ifdef FIXED_STRIDE
120119
int iz = ((ix / THREADSIZE) * THREADSIZE) * dim * field_dim + (ix % THREADSIZE) + (comp)*n_components * (THREADSIZE);
121120
const int _stride = THREADSIZE;
122-
#else
123-
int iz = ix + ((comp)*n_components) * (THREADSIZE);
124-
const int _stride = stride;
125-
#endif
126121
REAL *out_cpx = (REAL *)out;
127122
REAL *out_comp_cpx = (REAL *)s;
128123
for (int i = 0; i < n_components; ++i) {

0 commit comments

Comments
 (0)