QUDA v0.4.0
A library for QCD on GPUs
|
00001 #ifndef _BLAS_REFERENCE_H 00002 #define _BLAS_REFERENCE_H 00003 00004 #include <enum_quda.h> 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 // ---------- blas_reference.cpp ---------- 00011 double norm_2(void *vector, int len, QudaPrecision precision); 00012 void mxpy(void *x, void *y, int len, QudaPrecision precision); 00013 void ax(double a, void *x, int len, QudaPrecision precision); 00014 void axpy(double a, void *x, void *y, int len, QudaPrecision precision); 00015 /* void zero(float* a, int cnt); 00016 void copy(float* a, float *b, int len);*/ 00017 00018 /*void axpbyCuda(float a, float *x, float b, float *y, int len); 00019 void axpy(float a, float *x, float *y, int len);*/ 00020 //void xpay(float *x, float a, float *y, int len); 00021 00022 /*float reDotProduct(float *v1, float *v2, int len); 00023 float imDotProduct(float *v1, float *v2, int len); 00024 double normD(float *vector, int len); 00025 double reDotProductD(float *v1, float *v2, int len); 00026 double imDotProductD(float *v1, float *v2, int len);*/ 00027 00028 #ifdef __cplusplus 00029 } 00030 #endif 00031 00032 #endif // _BLAS_REFERENCE_H