QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions
new_half.cu File Reference
#include <quda_internal.h>
#include <register_traits.h>
Include dependency graph for new_half.cu:

Go to the source code of this file.

Macros

#define MAX_USHORT   65535.0f
 

Functions

void ucopy (float &a, const ushort &b)
 
void ucopy (ushort &a, const float &b)
 
void old_load_half (float spinor[24], short *in, float *norm, int idx)
 
void old_save_half (float spinor[24], short *out, float *norm, int idx)
 
void new_load_half (float spinor[24], short *in, float *norm, int idx)
 
void new_save_half (float spinor[24], short *out, float *norm, int idx)
 
void oldCopyToHalf (short *out, float *norm, float *in, int N)
 
void oldCopyToFloat (float *out, short *in, float *norm, int N)
 
void newCopyToHalf (short *out, float *norm, float *in, int N)
 
void newCopyToFloat (float *out, short *in, float *norm, int N)
 
void insertNoise (float *field, int N, float power)
 
double l2 (float *a, float *b, int N)
 
int main ()
 

Macro Definition Documentation

◆ MAX_USHORT

#define MAX_USHORT   65535.0f

Definition at line 16 of file new_half.cu.

Referenced by ucopy().

Function Documentation

◆ insertNoise()

void insertNoise ( float *  field,
int  N,
float  power 
)

Definition at line 112 of file new_half.cu.

References comm_drand(), and quda::pow().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ l2()

double l2 ( float *  a,
float *  b,
int  N 
)

Definition at line 120 of file new_half.cu.

References quda::sqrt().

Referenced by quda::Matrix< T, N >::L2(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 135 of file new_half.cu.

References host_free, insertNoise(), l2(), newCopyToFloat(), newCopyToHalf(), oldCopyToFloat(), oldCopyToHalf(), ref, and safe_malloc.

Here is the call graph for this function:

◆ new_load_half()

void new_load_half ( float  spinor[24],
short *  in,
float *  norm,
int  idx 
)

Definition at line 43 of file new_half.cu.

References quda::copy(), quda::cos(), quda::sin(), and ucopy().

Referenced by newCopyToFloat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_save_half()

void new_save_half ( float  spinor[24],
short *  out,
float *  norm,
int  idx 
)

Definition at line 57 of file new_half.cu.

References quda::atan2(), quda::copy(), quda::sqrt(), tmp, and ucopy().

Referenced by newCopyToHalf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newCopyToFloat()

void newCopyToFloat ( float *  out,
short *  in,
float *  norm,
int  N 
)

Definition at line 103 of file new_half.cu.

References new_load_half(), and spinor.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ newCopyToHalf()

void newCopyToHalf ( short *  out,
float *  norm,
float *  in,
int  N 
)

Definition at line 94 of file new_half.cu.

References new_save_half(), and spinor.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ old_load_half()

void old_load_half ( float  spinor[24],
short *  in,
float *  norm,
int  idx 
)

Definition at line 21 of file new_half.cu.

References quda::copy().

Referenced by oldCopyToFloat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ old_save_half()

void old_save_half ( float  spinor[24],
short *  out,
float *  norm,
int  idx 
)

Definition at line 30 of file new_half.cu.

References quda::copy(), and tmp.

Referenced by oldCopyToHalf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oldCopyToFloat()

void oldCopyToFloat ( float *  out,
short *  in,
float *  norm,
int  N 
)

Definition at line 85 of file new_half.cu.

References old_load_half(), and spinor.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ oldCopyToHalf()

void oldCopyToHalf ( short *  out,
float *  norm,
float *  in,
int  N 
)

Definition at line 76 of file new_half.cu.

References old_save_half(), and spinor.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ucopy() [1/2]

void ucopy ( float &  a,
const ushort &  b 
)
inline

Definition at line 17 of file new_half.cu.

References MAX_USHORT.

Referenced by new_load_half(), and new_save_half().

Here is the caller graph for this function:

◆ ucopy() [2/2]

void ucopy ( ushort &  a,
const float &  b 
)
inline

Definition at line 18 of file new_half.cu.

References MAX_USHORT.