#include <cuda.h>
#include <cuda_runtime_api.h>
Go to the source code of this file.
#define checkPtr |
( |
|
ptr, |
|
|
|
msg |
|
) |
| |
Value:{ \
ptrAssert((
ptr), (msg), __FILE__, __LINE__); \
}
Definition at line 41 of file CudaUtils.h.
Value:{ \
gpuAssert((ans), __FILE__, __LINE__); \
}
Definition at line 36 of file CudaUtils.h.
#define cudaCheckError |
( |
| ) |
|
Dummy implementation of cudaFreeAsync that calls cudaFree.
- Parameters
-
d_ptr | Device pointer that will be freed |
dummy | The stream establishing the stream ordering promise (ignored) |
- Returns
- Cuda error code
Definition at line 69 of file CudaUtils.h.
Dummy implementation of cudaMallocAsync that calls cudaMalloc.
- Parameters
-
d_ptr | Device pointer to allocated device memory |
size | Number of bytes to allocate |
dummy | The stream establishing the stream ordering contract and the memory pool to allocate from (ignored) |
- Returns
- Cuda error code
Definition at line 63 of file CudaUtils.h.