Skip to content

Commit

Permalink
pointer to 32-bit data
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaross committed Dec 18, 2017
1 parent d4afb7c commit 8f980e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/c_gups/shmem_tfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ SHMEMRandomAccessPowerOf2( my_args_t* args )
int k = k_global & kmask1;
int q = k_global >> peshift; // the processor number
if (N > 11) { // The percentage of errors is high for small N...
uint64_t* ptk = shmem_ptr(t + k, q);
uint32_t* ptk = (uint32_t*)shmem_ptr(t + k, q);
*ptk ^= a;
} else { // ...so use atomic xor to be error-free
shmem_uint32_atomic_xor(t + k, a, q);
Expand Down

0 comments on commit 8f980e6

Please sign in to comment.