HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
arrayfunctions_gpu.h File Reference

Contains function definitions for common array operations on GPU. More...

#include <arrayfunctions.h>

Go to the source code of this file.

Enumerations

enum  gpuMemcpyKind { gpuMemcpyHostToDevice = 0, gpuMemcpyDeviceToHost, gpuMemcpyDeviceToDevice }
 

Functions

void gpuSetDevice (int device)
 
void gpuMemcpy (void *, const void *, size_t, enum gpuMemcpyKind)
 
void gpuMalloc (void **, size_t)
 
void gpuMemset (void *, int, size_t)
 
void gpuFree (void *)
 
void gpuArrayCopy1D (const double *, double *, int)
 
void gpuArraySetValue (double *, int, double)
 
void gpuArrayAXPY (const double *, double, double *, int)
 
void gpuArrayBlockMultiply (double *, const double *, int, int)
 
double gpuArraySumSquarenD (int, int, int *, int, int *, double *)
 
void gpuArrayCopy1DNewScheme (const double *, double *, int, int)
 
void gpuArrayCheckEqual (const char *, const double *, const double *, int, int)
 
void gpuArrayCheckEqual2 (const char *, const double *, const double *, int)
 

Detailed Description

Contains function definitions for common array operations on GPU.

Author
Youngdae Kim

Definition in file arrayfunctions_gpu.h.

Enumeration Type Documentation

◆ gpuMemcpyKind

Enumerator
gpuMemcpyHostToDevice 
gpuMemcpyDeviceToHost 
gpuMemcpyDeviceToDevice 

Definition at line 15 of file arrayfunctions_gpu.h.

Function Documentation

◆ gpuSetDevice()

void gpuSetDevice ( int  device)

◆ gpuMemcpy()

void gpuMemcpy ( void *  ,
const void *  ,
size_t  ,
enum  gpuMemcpyKind 
)

◆ gpuMalloc()

void gpuMalloc ( void **  ,
size_t   
)

◆ gpuMemset()

void gpuMemset ( void *  ,
int  ,
size_t   
)

◆ gpuFree()

void gpuFree ( void *  )

◆ gpuArrayCopy1D()

void gpuArrayCopy1D ( const double *  ,
double *  ,
int   
)

◆ gpuArraySetValue()

void gpuArraySetValue ( double *  ,
int  ,
double   
)

◆ gpuArrayAXPY()

void gpuArrayAXPY ( const double *  ,
double  ,
double *  ,
int   
)

◆ gpuArrayBlockMultiply()

void gpuArrayBlockMultiply ( double *  ,
const double *  ,
int  ,
int   
)

◆ gpuArraySumSquarenD()

double gpuArraySumSquarenD ( int  ,
int  ,
int *  ,
int  ,
int *  ,
double *   
)

◆ gpuArrayCopy1DNewScheme()

void gpuArrayCopy1DNewScheme ( const double *  ,
double *  ,
int  ,
int   
)

◆ gpuArrayCheckEqual()

void gpuArrayCheckEqual ( const char *  ,
const double *  ,
const double *  ,
int  ,
int   
)

◆ gpuArrayCheckEqual2()

void gpuArrayCheckEqual2 ( const char *  ,
const double *  ,
const double *  ,
int   
)