|
Functions |
CUresult | cuArray3DCreate (CUarray *pHandle, const CUDA_ARRAY3D_DESCRIPTOR *pDesc) |
| Creates a 3D CUDA array.
|
CUresult | cuArray3DGetDescriptor (CUDA_ARRAY3D_DESCRIPTOR *pDesc, CUarray hArray) |
| Get a 3D CUDA array descriptor.
|
CUresult | cuArrayCreate (CUarray *pHandle, const CUDA_ARRAY_DESCRIPTOR *pDesc) |
| Creates a 1D or 2D CUDA array.
|
CUresult | cuArrayDestroy (CUarray pArray) |
| Destroys a CUDA array.
|
CUresult | cuArrayGetDescriptor (CUDA_ARRAY_DESCRIPTOR *pDesc, CUarray hArray) |
| Get a 1D or 2D CUDA array descriptor.
|
CUresult | cuMemAlloc (CUdeviceptr *dptr, unsigned int bytesize) |
| Allocates device memory.
|
CUresult | cuMemAllocHost (void **pp, unsigned int bytesize) |
| Allocates page-locked host memory.
|
CUresult | cuMemAllocPitch (CUdeviceptr *dptr, unsigned int *pPitch, unsigned int WidthInBytes, unsigned int Height, unsigned int ElementSizeBytes) |
| Allocates pitched device memory.
|
CUresult | cuMemcpy2D (const CUDA_MEMCPY2D *pCopy) |
| Copies memory for 2D arrays.
|
CUresult | cuMemcpy2DAsync (const CUDA_MEMCPY2D *pCopy, CUstream hStream) |
| Copies memory for 2D arrays.
|
CUresult | cuMemcpy2DUnaligned (const CUDA_MEMCPY2D *pCopy) |
| Copies memory for 2D arrays.
|
CUresult | cuMemcpy3D (const CUDA_MEMCPY3D *pCopy) |
| Copies memory for 3D arrays.
|
CUresult | cuMemcpy3DAsync (const CUDA_MEMCPY3D *pCopy, CUstream hStream) |
| Copies memory for 3D arrays.
|
CUresult | cuMemcpyAtoA (CUarray hDst, unsigned int DstOffset, CUarray hSrc, unsigned int SrcOffset, unsigned int NumBytes) |
| Copies memory from Array to Array.
|
CUresult | cuMemcpyAtoD (CUdeviceptr dptr, CUarray hSrc, unsigned int SrcOffset, unsigned int NumBytes) |
| Copies memory from Array to Device.
|
CUresult | cuMemcpyAtoH (void *pDst, CUarray hSrc, unsigned int srcOffset, unsigned int bytes) |
| Copies memory from Array to Host.
|
CUresult | cuMemcpyAtoHAsync (void *pDst, CUarray hSrc, unsigned int srcOffset, unsigned int bytes, CUstream hStream) |
| Copies memory from Array to Host.
|
CUresult | cuMemcpyDtoA (CUarray hDst, unsigned int DstOffset, CUdeviceptr dptr, unsigned int NumBytes) |
| Copies memory from Device to Array.
|
CUresult | cuMemcpyDtoD (CUdeviceptr dst, CUdeviceptr src, unsigned int bytes) |
| Copies memory from Device to Device.
|
CUresult | cuMemcpyDtoH (void *dst, CUdeviceptr dptr, unsigned int bytes) |
| Copies memory from Device to Host.
|
CUresult | cuMemcpyDtoHAsync (void *dst, CUdeviceptr dptr, unsigned int bytes, CUstream hStream) |
| Copies memory from Device to Host.
|
CUresult | cuMemcpyHtoA (CUarray hDst, unsigned int dstOffset, const void *pSrc, unsigned int bytes) |
| Copies memory from Host to Array.
|
CUresult | cuMemcpyHtoAAsync (CUarray hDst, unsigned int dstOffset, const void *pSrc, unsigned int bytes, CUstream hStream) |
| Copies memory from Host to Array.
|
CUresult | cuMemcpyHtoD (CUdeviceptr dptr, const void *src, unsigned int bytes) |
| Copies memory from Host to Device.
|
CUresult | cuMemcpyHtoDAsync (CUdeviceptr dptr, const void *src, unsigned int bytes, CUstream hStream) |
| Copies memory from Host to Device.
|
CUresult | cuMemFree (CUdeviceptr dptr) |
| Frees device memory.
|
CUresult | cuMemFreeHost (void *p) |
| Frees page-locked host memory.
|
CUresult | cuMemGetAddressRange (CUdeviceptr *pdptr, unsigned int *psize, CUdeviceptr dptr) |
| Get information on memory allocations.
|
CUresult | cuMemGetInfo (unsigned int *free, unsigned int *total) |
| Gets free and total memory.
|
CUresult | cuMemHostAlloc (void **pp, size_t bytes, unsigned int Flags) |
| Allocates page-locked host memory.
|
CUresult | cuMemHostGetDevicePointer (CUdeviceptr *ret, void *p, unsigned int Flags) |
| Passes back device pointer of mapped pinned memory.
|
CUresult | cuMemsetD16 (CUdeviceptr dstDevice, unsigned short us, unsigned int N) |
| Initializes device memory.
|
CUresult | cuMemsetD2D16 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned short us, unsigned int Width, unsigned int Height) |
| Initializes device memory.
|
CUresult | cuMemsetD2D32 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned int ui, unsigned int Width, unsigned int Height) |
| Initializes device memory.
|
CUresult | cuMemsetD2D8 (CUdeviceptr dstDevice, unsigned int dstPitch, unsigned char uc, unsigned int Width, unsigned int Height) |
| Initializes device memory.
|
CUresult | cuMemsetD32 (CUdeviceptr dstDevice, unsigned int ui, unsigned int N) |
| Initializes device memory.
|
CUresult | cuMemsetD8 (CUdeviceptr dstDevice, unsigned char c, unsigned int N) |
| Initializes device memory.
|
This section describes the memory management functions of the low-level CUDA driver application programming interface.