QUDA v0.4.0
A library for QCD on GPUs
|
#include <stdio.h>
#include <stdlib.h>
#include <quda_internal.h>
#include <color_spinor_field.h>
#include <blas_quda.h>
#include <test_util.h>
Go to the source code of this file.
Defines | |
#define | ERROR(a) fabs(norm2(*a##D) - norm2(*a##H)) / norm2(*a##H) |
Functions | |
void | setPrec (ColorSpinorParam ¶m, const QudaPrecision precision) |
void | initFields (int prec) |
void | freeFields () |
double | benchmark (int kernel, const int niter) |
double | test (int kernel) |
int | main (int argc, char **argv) |
Variables | |
const int | LX = 16 |
const int | LY = 16 |
const int | LZ = 16 |
const int | LT = 16 |
const int | Nspin = 4 |
const int | Niter = max(1, 1 * (16*16*16*16*4) / (LX * LY * LZ * LT * Nspin)) |
const int | Nkernels = 31 |
cpuColorSpinorField * | xH |
cpuColorSpinorField * | yH |
cpuColorSpinorField * | zH |
cpuColorSpinorField * | wH |
cpuColorSpinorField * | vH |
cpuColorSpinorField * | hH |
cpuColorSpinorField * | lH |
cudaColorSpinorField * | xD |
cudaColorSpinorField * | yD |
cudaColorSpinorField * | zD |
cudaColorSpinorField * | wD |
cudaColorSpinorField * | vD |
cudaColorSpinorField * | hD |
cudaColorSpinorField * | lD |
#define ERROR | ( | a | ) | fabs(norm2(*a##D) - norm2(*a##H)) / norm2(*a##H) |
Definition at line 311 of file blas_test.cu.
double benchmark | ( | int | kernel, |
const int | niter | ||
) |
Definition at line 154 of file blas_test.cu.
void freeFields | ( | ) |
Definition at line 131 of file blas_test.cu.
void initFields | ( | int | prec | ) |
Definition at line 36 of file blas_test.cu.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 586 of file blas_test.cu.
void setPrec | ( | ColorSpinorParam & | param, |
const QudaPrecision | precision | ||
) |
Definition at line 26 of file blas_test.cu.
double test | ( | int | kernel | ) |
Definition at line 313 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
const int LT = 16 |
Definition at line 15 of file blas_test.cu.
const int LX = 16 |
Definition at line 12 of file blas_test.cu.
const int LY = 16 |
Definition at line 13 of file blas_test.cu.
const int LZ = 16 |
Definition at line 14 of file blas_test.cu.
Definition at line 19 of file blas_test.cu.
const int Nkernels = 31 |
Definition at line 21 of file blas_test.cu.
const int Nspin = 4 |
Definition at line 16 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.
Definition at line 24 of file blas_test.cu.
Definition at line 23 of file blas_test.cu.