6 template <
typename T, QudaGaugeFieldOrder order,
int Nc>
8 static constexpr
int nColor = Nc;
16 template <
typename Arg>
22 template <
typename Arg>
25 uint64_t checksum_ = 0;
27 for (
int x_cb=0; x_cb<arg.
volumeCB; x_cb++)
28 for (
int d=0; d<arg.U.geometry; d++)
33 template <
typename T,
int Nc>
36 uint64_t checksum = 0;
65 uint64_t checksum = 0;
67 case 3: checksum = Checksum<T,3>(u,mini);
break;
68 default:
errorQuda(
"Unsupported nColor = %d", u.Ncolor());
75 uint64_t checksum = 0;
79 default:
errorQuda(
"Unsupported precision = %d", u.Precision());
uint64_t Checksum(const GaugeField &u, bool mini=false)
static constexpr int nColor
__device__ __host__ uint64_t checksum() const
ChecksumArg(const GaugeField &U, bool mini)
uint64_t ChecksumCPU(const Arg &arg)
Main header file for host and device accessors to GaugeFields.
__device__ __host__ uint64_t siteChecksum(const Arg &arg, int d, int parity, int x_cb)
void comm_allreduce_xor(uint64_t *data)
__host__ __device__ ValueType arg(const complex< ValueType > &z)
Returns the phase angle of z.
gauge_order_mapper< T, order, Nc >::type G
QudaGaugeFieldOrder Order() const
QudaPrecision Precision() const