QUDA  v1.1.0
A library for QCD on GPUs
qio_field.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef HAVE_QIO
4 void read_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X,
5  int argc, char *argv[]);
6 void write_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X, int argc, char *argv[]);
7 void read_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X, QudaSiteSubset subset,
8  QudaParity parity, int nColor, int nSpin, int Nvec, int argc, char *argv[]);
9 void write_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X, QudaSiteSubset subset,
10  QudaParity parity, int nColor, int nSpin, int Nvec, int argc, char *argv[]);
11 #else
12 inline void read_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X, int argc,
13  char *argv[])
14 {
15  printf("QIO support has not been enabled\n");
16  exit(-1);
17 }
18 inline void write_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X, int argc,
19  char *argv[])
20 {
21  printf("QIO support has not been enabled\n");
22  exit(-1);
23 }
24 inline void read_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X,
25  QudaSiteSubset subset, QudaParity parity, int nColor, int nSpin, int Nvec, int argc,
26  char *argv[])
27 {
28  printf("QIO support has not been enabled\n");
29  exit(-1);
30 }
31 inline void write_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X,
32  QudaSiteSubset subset, QudaParity parity, int nColor, int nSpin, int Nvec, int argc,
33  char *argv[])
34 {
35  printf("QIO support has not been enabled\n");
36  exit(-1);
37 }
38 
39 #endif
QudaPrecision prec
int V
Definition: host_utils.cpp:37
QudaParity parity
Definition: covdev_test.cpp:40
const int nColor
Definition: covdev_test.cpp:44
enum QudaPrecision_s QudaPrecision
enum QudaSiteSubset_s QudaSiteSubset
enum QudaParity_s QudaParity
void read_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X, QudaSiteSubset subset, QudaParity parity, int nColor, int nSpin, int Nvec, int argc, char *argv[])
Definition: qio_field.h:24
void write_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X, int argc, char *argv[])
Definition: qio_field.h:18
void write_spinor_field(const char *filename, void *V[], QudaPrecision precision, const int *X, QudaSiteSubset subset, QudaParity parity, int nColor, int nSpin, int Nvec, int argc, char *argv[])
Definition: qio_field.h:31
void read_gauge_field(const char *filename, void *gauge[], QudaPrecision prec, const int *X, int argc, char *argv[])
Definition: qio_field.h:12