66 for (
int dir = 0; dir < 4; dir++) {
115 printf(
"\nSpinor mem: %.3f GiB\n", spinorGiB);
120 #ifdef BUILD_CPS_INTERFACE 138 printf(
"CPS Gauge send time = %e seconds\n", cpsGtime);
143 printf(
"CPS Gauge restore time = %e seconds\n", cpsGRtime);
147 #ifdef BUILD_QDP_INTERFACE 165 printf(
"QDP Gauge send time = %e seconds\n", qdpGtime);
170 printf(
"QDP Gauge restore time = %e seconds\n", qdpGRtime);
178 printf(
"Spinor send time = %e seconds\n", sSendTime);
fflush(stdout);
183 printf(
"Spinor receive time = %e seconds\n", sRecTime);
fflush(stdout);
189 printf(
"Norm check: CPU = %e, CUDA = %e, CPU = %e\n",
190 spinor_norm, cuda_spinor_norm, spinor2_norm);
196 extern void usage(
char**);
198 int main(
int argc,
char **argv) {
199 for (
int i=1;
i<argc;
i++){
204 fprintf(stderr,
"ERROR: Invalid option:%s\n", argv[
i]);
cpuColorSpinorField * spinor
void setPrecision(QudaPrecision precision)
QudaReconstructType reconstruct_sloppy
void setVerbosityQuda(QudaVerbosity verbosity, const char prefix[], FILE *outfile)
enum QudaPrecision_s QudaPrecision
void saveCPUField(cpuGaugeField &cpu) const
Upload from this field into a CPU field.
cpuColorSpinorField * spinor2
double norm2(const ColorSpinorField &a)
int process_command_line_option(int argc, char **argv, int *idx)
void Source(const QudaSourceType sourceType, const int st=0, const int s=0, const int c=0)
QudaGaugeFieldOrder gauge_order
QudaSiteSubset siteSubset
double stopwatchReadSeconds()
void loadCPUField(const cpuGaugeField &cpu)
Download into this field from a CPU field.
void initQuda(int device)
void * malloc(size_t __size) __attribute__((__warn_unused_result__)) __attribute__((alloc_size(1)))
int printf(const char *,...) __attribute__((__format__(__printf__
QudaFieldOrder fieldOrder
cudaColorSpinorField * cudaSpinor
QudaGammaBasis gammaBasis
QudaGaugeFieldOrder order
QudaPrecision cuda_prec_sloppy
QudaReconstructType link_recon
QudaReconstructType reconstruct
int fprintf(FILE *, const char *,...) __attribute__((__format__(__printf__
static int Compare(const cpuColorSpinorField &a, const cpuColorSpinorField &b, const int resolution=1)
enum QudaReconstructType_s QudaReconstructType
int main(int argc, char **argv)
QudaReconstructType reconstruct
int gridsize_from_cmdline[]
static __inline__ size_t size_t d
void initComms(int argc, char **argv, const int *commDims)