HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
arrayfunctions_gpu.h
Go to the documentation of this file.
1 
6 #ifndef _ARRAYFUNCTIONS_GPU_H_
7 #define _ARRAYFUNCTIONS_GPU_H_
8 
9 #include <arrayfunctions.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
19 };
20 
21 void gpuSetDevice(int device);
22 void gpuMemcpy(void*,const void*,size_t,enum gpuMemcpyKind);
23 void gpuMalloc(void**,size_t);
24 void gpuMemset(void*,int,size_t);
25 void gpuFree(void*);
26 
27 void gpuArrayCopy1D(const double*,double*,int);
28 void gpuArraySetValue(double*,int,double);
29 void gpuArrayAXPY(const double*,double,double*,int);
30 void gpuArrayBlockMultiply(double*,const double*,int,int);
31 double gpuArraySumSquarenD(int,int,int*,int,int*,double*);
32 
33 void gpuArrayCopy1DNewScheme(const double*,double*,int,int);
34 void gpuArrayCheckEqual(const char*,const double*,const double*,int,int);
35 void gpuArrayCheckEqual2(const char*,const double*,const double*,int);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif
void gpuArrayAXPY(const double *, double, double *, int)
void gpuArrayBlockMultiply(double *, const double *, int, int)
void gpuMemcpy(void *, const void *, size_t, enum gpuMemcpyKind)
void gpuArrayCheckEqual2(const char *, const double *, const double *, int)
void gpuArraySetValue(double *, int, double)
void gpuArrayCopy1DNewScheme(const double *, double *, int, int)
double gpuArraySumSquarenD(int, int, int *, int, int *, double *)
void gpuFree(void *)
void gpuMemset(void *, int, size_t)
void gpuMalloc(void **, size_t)
void gpuSetDevice(int device)
Contains macros and function definitions for common array operations.
void gpuArrayCheckEqual(const char *, const double *, const double *, int, int)
gpuMemcpyKind
void gpuArrayCopy1D(const double *, double *, int)