QUDA  v1.1.0
A library for QCD on GPUs
Functions | Variables
qio_field.cpp File Reference
#include <iostream>
#include <qmp.h>
#include <qio.h>
#include <quda.h>
#include <util_quda.h>
#include <layout_hyper.h>
#include <string>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const QIO_Layout &layout)
 
template<typename oFloat , typename iFloat , int len>
void vput (char *s1, size_t index, int count, void *s2)
 
template<typename oFloat , typename iFloat , int len>
void vget (char *s1, size_t index, int count, void *s2)
 
QIO_Reader * open_test_input (const char *filename, int volfmt, int serpar)
 
QIO_Writer * open_test_output (const char *filename, int volfmt, int serpar, int ildgstyle)
 
template<int len>
int read_field (QIO_Reader *infile, int count, void *field_in[], QudaPrecision cpu_prec, QudaSiteSubset subset, QudaParity parity, int nSpin, int nColor)
 
int read_su3_field (QIO_Reader *infile, int count, void *field_in[], QudaPrecision cpu_prec)
 
void set_layout (const int *X, QudaSiteSubset subset=QUDA_FULL_SITE_SUBSET)
 
void read_gauge_field (const char *filename, void *gauge[], QudaPrecision precision, const int *X, int argc, char *argv[])
 
int read_field (QIO_Reader *infile, int Ninternal, int count, void *field_in[], QudaPrecision cpu_prec, QudaSiteSubset subset, QudaParity parity, int nSpin, int nColor)
 
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[])
 
template<int len>
int write_field (QIO_Writer *outfile, int count, void *field_out[], QudaPrecision file_prec, QudaPrecision cpu_prec, QudaSiteSubset subset, QudaParity parity, int nSpin, int nColor, const char *type)
 
int write_su3_field (QIO_Writer *outfile, int count, void *field_out[], QudaPrecision file_prec, QudaPrecision cpu_prec, const char *type)
 
void write_gauge_field (const char *filename, void *gauge[], QudaPrecision precision, const int *X, int argc, char *argv[])
 
int write_field (QIO_Writer *outfile, int Ninternal, int count, void *field_out[], QudaPrecision file_prec, QudaPrecision cpu_prec, QudaSiteSubset subset, QudaParity parity, int nSpin, int nColor, const char *type)
 
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[])
 

Variables

int quda_this_node
 

Function Documentation

◆ open_test_input()

QIO_Reader* open_test_input ( const char *  filename,
int  volfmt,
int  serpar 
)

Definition at line 63 of file qio_field.cpp.

◆ open_test_output()

QIO_Writer* open_test_output ( const char *  filename,
int  volfmt,
int  serpar,
int  ildgstyle 
)

Definition at line 89 of file qio_field.cpp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const QIO_Layout &  layout 
)

Definition at line 14 of file qio_field.cpp.

◆ read_field() [1/2]

template<int len>
int read_field ( QIO_Reader *  infile,
int  count,
void *  field_in[],
QudaPrecision  cpu_prec,
QudaSiteSubset  subset,
QudaParity  parity,
int  nSpin,
int  nColor 
)

Definition at line 126 of file qio_field.cpp.

◆ read_field() [2/2]

int read_field ( QIO_Reader *  infile,
int  Ninternal,
int  count,
void *  field_in[],
QudaPrecision  cpu_prec,
QudaSiteSubset  subset,
QudaParity  parity,
int  nSpin,
int  nColor 
)

Definition at line 271 of file qio_field.cpp.

◆ read_gauge_field()

void read_gauge_field ( const char *  filename,
void *  gauge[],
QudaPrecision  precision,
const int *  X,
int  argc,
char *  argv[] 
)

Definition at line 249 of file qio_field.cpp.

◆ read_spinor_field()

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 at line 288 of file qio_field.cpp.

◆ read_su3_field()

int read_su3_field ( QIO_Reader *  infile,
int  count,
void *  field_in[],
QudaPrecision  cpu_prec 
)

Definition at line 199 of file qio_field.cpp.

◆ set_layout()

void set_layout ( const int *  X,
QudaSiteSubset  subset = QUDA_FULL_SITE_SUBSET 
)

Definition at line 204 of file qio_field.cpp.

◆ vget()

template<typename oFloat , typename iFloat , int len>
void vget ( char *  s1,
size_t  index,
int  count,
void *  s2 
)

Definition at line 50 of file qio_field.cpp.

◆ vput()

template<typename oFloat , typename iFloat , int len>
void vput ( char *  s1,
size_t  index,
int  count,
void *  s2 
)

Definition at line 34 of file qio_field.cpp.

◆ write_field() [1/2]

template<int len>
int write_field ( QIO_Writer *  outfile,
int  count,
void *  field_out[],
QudaPrecision  file_prec,
QudaPrecision  cpu_prec,
QudaSiteSubset  subset,
QudaParity  parity,
int  nSpin,
int  nColor,
const char *  type 
)

Definition at line 310 of file qio_field.cpp.

◆ write_field() [2/2]

int write_field ( QIO_Writer *  outfile,
int  Ninternal,
int  count,
void *  field_out[],
QudaPrecision  file_prec,
QudaPrecision  cpu_prec,
QudaSiteSubset  subset,
QudaParity  parity,
int  nSpin,
int  nColor,
const char *  type 
)

Definition at line 444 of file qio_field.cpp.

◆ write_gauge_field()

void write_gauge_field ( const char *  filename,
void *  gauge[],
QudaPrecision  precision,
const int *  X,
int  argc,
char *  argv[] 
)

Definition at line 417 of file qio_field.cpp.

◆ write_spinor_field()

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 at line 473 of file qio_field.cpp.

◆ write_su3_field()

int write_su3_field ( QIO_Writer *  outfile,
int  count,
void *  field_out[],
QudaPrecision  file_prec,
QudaPrecision  cpu_prec,
const char *  type 
)

Definition at line 410 of file qio_field.cpp.

Variable Documentation

◆ quda_this_node

int quda_this_node

Definition at line 12 of file qio_field.cpp.