QUDA
1.0.0
|
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 () |
#define MAX_USHORT 65535.0f |
Definition at line 16 of file new_half.cu.
Referenced by ucopy().
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().
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().
int main | ( | ) |
Definition at line 135 of file new_half.cu.
References host_free, insertNoise(), l2(), newCopyToFloat(), newCopyToHalf(), oldCopyToFloat(), oldCopyToHalf(), ref, and safe_malloc.
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().
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().
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().
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().
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().
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().
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().
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().
|
inline |
Definition at line 17 of file new_half.cu.
References MAX_USHORT.
Referenced by new_load_half(), and new_save_half().
|
inline |
Definition at line 18 of file new_half.cu.
References MAX_USHORT.