|
|
Allocates a CUDA array according to the cudaChannelFormatDesc structure desc and returns a handle to the new CUDA array in *array.
The cudaChannelFormatDesc is defined as: where cudaChannelFormatKind is one of cudaChannelFormatKindSigned, cudaChannelFormatKindUnsigned, or cudaChannelFormatKindFloat.
flags provides for future releases. For now, it must be set to 0.
- Parameters:
-
| arrayPtr | - Pointer to allocated array in device memory |
| desc | - Requested channel format |
| width | - Requested array allocation width |
| height | - Requested array allocation height |
| flags | - Flags for extensions (must be 0 for now) |
- Returns:
- cudaSuccess, cudaErrorMemoryAllocation
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaMalloc, cudaMallocPitch, cudaFree, cudaFreeArray, cudaMallocHost, cudaFreeHost, cudaMalloc3D, cudaMalloc3DArray, cudaHostAlloc
|