lattice / quda

QUDA is a library for performing calculations in lattice QCD on GPUs.
https://lattice.github.io/quda
Other
292 stars 99 forks source link

Move atomic functions for double out of gauge_plaq.cu #309

Closed mathiaswagner closed 9 years ago

mathiaswagner commented 9 years ago

The following functions are implemented in gauge_plaq.cu.

 static __inline__ __device__ double atomicAdd(double *addr, double val)
...
static  __inline__ __device__ double2 atomicAdd(double2 *addr, double2 val)

They should be moves to a header so that other parts of quda can also use them.

maddyscientist commented 9 years ago

There is an atomicAdd defined in clover_invert.cu as well.

mathiaswagner commented 9 years ago

I believe this has been included in the merge of #253.