103 #ifdef BUILD_CPS_INTERFACE
118 printfQuda(
"CPS Gauge send time = %e seconds\n", cpsGtime);
123 printfQuda(
"CPS Gauge restore time = %e seconds\n", cpsGRtime);
127 #ifdef BUILD_QDP_INTERFACE
142 printfQuda(
"QDP Gauge send time = %e seconds\n", qdpGtime);
147 printfQuda(
"QDP Gauge restore time = %e seconds\n", qdpGRtime);
155 printfQuda(
"Spinor send time = %e seconds\n", sSendTime);
160 printfQuda(
"Spinor receive time = %e seconds\n", sRecTime);
166 printfQuda(
"Norm check: CPU = %e, CUDA = %e, CPU = %e\n", spinor_norm, cuda_spinor_norm, spinor2_norm);
171 int main(
int argc,
char **argv) {
175 app->parse(argc, argv);
176 }
catch (
const CLI::ParseError &e) {
QudaGammaBasis gammaBasis
void setPrecision(QudaPrecision precision, QudaPrecision ghost_precision=QUDA_INVALID_PRECISION, bool force_native=false)
QudaFieldOrder fieldOrder
void Source(const QudaSourceType sourceType, const int st=0, const int s=0, const int c=0)
static int Compare(const cpuColorSpinorField &a, const cpuColorSpinorField &b, const int resolution=1)
Perform a component by component comparison of two color-spinor fields. In doing we normalize with re...
void loadCPUField(const cpuGaugeField &cpu)
Download into this field from a CPU field.
void saveCPUField(cpuGaugeField &cpu) const
Upload from this field into a CPU field.
std::shared_ptr< QUDAApp > make_app(std::string app_description, std::string app_name)
QudaReconstructType link_recon
std::array< int, 4 > gridsize_from_cmdline
enum QudaPrecision_s QudaPrecision
@ QUDA_PARITY_SITE_SUBSET
@ QUDA_DEGRAND_ROSSI_GAMMA_BASIS
@ QUDA_EVEN_ODD_SITE_ORDER
@ QUDA_CPS_WILSON_GAUGE_ORDER
@ QUDA_FLOAT2_FIELD_ORDER
@ QUDA_SPACE_SPIN_COLOR_FIELD_ORDER
void initComms(int argc, char **argv, std::array< int, 4 > &commDims)
double stopwatchReadSeconds()
double norm2(const ColorSpinorField &a)
int main(int argc, char **argv)
cudaColorSpinorField * cudaSpinor
cpuColorSpinorField * spinor
cpuColorSpinorField * spinor2
void setVerbosityQuda(QudaVerbosity verbosity, const char prefix[], FILE *outfile)
void initQuda(int device)
QudaReconstructType reconstruct
QudaPrecision cuda_prec_sloppy
QudaReconstructType reconstruct_sloppy
QudaGaugeFieldOrder gauge_order
QudaReconstructType reconstruct
void setPrecision(QudaPrecision precision, bool force_native=false)
Helper function for setting the precision and corresponding field order for QUDA internal fields.
QudaSiteSubset siteSubset