Utility class for CUDA memory allocations. More...
#include <iostream>#include <vector>#include <cuda.h>#include <cuComplex.h>Go to the source code of this file.
Classes | |
| class | MemUtils |
Macros | |
| #define | gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } |
Functions | |
| void | gpuAssert (cudaError_t code, const char *file, int line, bool abort=true) |
Utility class for CUDA memory allocations.
Contains often used memory allocation/copy/deallocation operations between host and device.
|
inline |
Check CUDA API error status of call.
Wrapper for finding errors in CUDA API calls.
| code | The errorcode returned from failed API call. |
| file | The file in which failure occured. |
| line | The line in file in which error occured. |
| abort | Exit code upon error. |