nnlib
GPU-accelerated, C/C++ neural network library.
|
Header file declaring the gpuAssert() method. More...
Macros | |
#define | GPU_CHECK_ERROR(ans) gpuAssert((ans), __FILE__, __LINE__) |
Macro used to call the gpuAssert() method with file and line information. | |
Functions | |
void | gpuAssert (cudaError_t code, const char *file, int line, bool abort=true) |
Method used to assert that the last CUDA call was successful. More... | |
Header file declaring the gpuAssert() method.
|
inline |
Method used to assert that the last CUDA call was successful.
If the call was not successful, the method will display the error message.
code | The most recent code returned by CUDA. |
file | The file where the GPU_CHECK_ERROR was called. |
line | The line where the GPU_CHECK_ERROR was called. |
abort | If true, the program will stop upon encountering the exception. |