QUDA  v0.7.0
A library for QCD on GPUs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions
misc_helpers.cu File Reference
#include <quda_internal.h>
#include <misc_helpers.h>

Go to the source code of this file.

Classes

struct  quda::GhostStapleParam
 

Namespaces

 quda
 

Macros

#define gaugeSiteSize   18
 
#define BLOCKSIZE   64
 
#define READ_ST_STAPLE(staple, idx, mystride)
 
#define WRITE_ST_STAPLE(staple, idx, mystride)
 

Functions

template<int N, typename FloatN , typename Float2 >
__global__ void quda::do_link_format_cpu_to_gpu (FloatN *dst, Float2 *src, int reconstruct, int Vh, int pad, int ghostV, size_t threads)
 
template<int N, typename FloatN , typename Float2 >
__global__ void quda::do_link_format_cpu_to_gpu_milc (FloatN *dst, Float2 *src, int reconstruct, int Vh, int pad, int ghostV, size_t threads)
 
void quda::link_format_cpu_to_gpu (void *dst, void *src, int reconstruct, int Vh, int pad, int ghostV, QudaPrecision prec, QudaGaugeFieldOrder cpu_order, cudaStream_t stream)
 
template<typename FloatN >
__global__ void quda::do_link_format_gpu_to_cpu (FloatN *dst, FloatN *src, int Vh, int stride)
 
void quda::link_format_gpu_to_cpu (void *dst, void *src, int Vh, int stride, QudaPrecision prec, cudaStream_t stream)
 
template<int dir, int whichway, typename Float2 >
__global__ void quda::collectGhostStapleKernel (Float2 *out, Float2 *in, int parity, GhostStapleParam param)
 
void quda::collectGhostStaple (int *X, void *even, void *odd, int volumeCB, int stride, QudaPrecision precision, void *ghost_staple_gpu, int dir, int whichway, cudaStream_t *stream)
 

Macro Definition Documentation

#define BLOCKSIZE   64

Definition at line 5 of file misc_helpers.cu.

#define gaugeSiteSize   18

Definition at line 4 of file misc_helpers.cu.

#define READ_ST_STAPLE (   staple,
  idx,
  mystride 
)
Value:
Float2 P0 = staple[idx + 0*mystride]; \
Float2 P1 = staple[idx + 1*mystride]; \
Float2 P2 = staple[idx + 2*mystride]; \
Float2 P3 = staple[idx + 3*mystride]; \
Float2 P4 = staple[idx + 4*mystride]; \
Float2 P5 = staple[idx + 5*mystride]; \
Float2 P6 = staple[idx + 6*mystride]; \
Float2 P7 = staple[idx + 7*mystride]; \
Float2 P8 = staple[idx + 8*mystride];
#define P7
#define P5
#define P3

Definition at line 368 of file misc_helpers.cu.

#define WRITE_ST_STAPLE (   staple,
  idx,
  mystride 
)
Value:
staple[idx + 0*mystride] = P0; \
staple[idx + 1*mystride] = P1; \
staple[idx + 2*mystride] = P2; \
staple[idx + 3*mystride] = P3; \
staple[idx + 4*mystride] = P4; \
staple[idx + 5*mystride] = P5; \
staple[idx + 6*mystride] = P6; \
staple[idx + 7*mystride] = P7; \
staple[idx + 8*mystride] = P8;
#define P7
#define P5
#define P3

Definition at line 379 of file misc_helpers.cu.