QUDA v0.4.0
A library for QCD on GPUs
Defines | Functions | Variables
quda/tests/blas_test.cu File Reference
#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 &param, 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
cpuColorSpinorFieldxH
cpuColorSpinorFieldyH
cpuColorSpinorFieldzH
cpuColorSpinorFieldwH
cpuColorSpinorFieldvH
cpuColorSpinorFieldhH
cpuColorSpinorFieldlH
cudaColorSpinorFieldxD
cudaColorSpinorFieldyD
cudaColorSpinorFieldzD
cudaColorSpinorFieldwD
cudaColorSpinorFieldvD
cudaColorSpinorFieldhD
cudaColorSpinorFieldlD

Define Documentation

#define ERROR (   a)    fabs(norm2(*a##D) - norm2(*a##H)) / norm2(*a##H)

Definition at line 311 of file blas_test.cu.


Function Documentation

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.


Variable Documentation

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.

const int Niter = max(1, 1 * (16*16*16*16*4) / (LX * LY * LZ * LT * Nspin))

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines