HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
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) |
Contains function definitions for common array operations on GPU.
Definition in file arrayfunctions_gpu.h.
enum gpuMemcpyKind |
Enumerator | |
---|---|
gpuMemcpyHostToDevice | |
gpuMemcpyDeviceToHost | |
gpuMemcpyDeviceToDevice |
Definition at line 15 of file arrayfunctions_gpu.h.
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 | |||
) |