cudaMalloc3D: Allocates logical 1D, 2D, or 3D memory objects on the device

Description Usage Arguments Value References See Also

Description

Allocates at least width * height * depth bytes of linear memory on the device and returns a cudaPitchedPtr in which ptr is a pointer to the allocated memory. The function may pad the allocation to ensure hardware alignment requirements are met. The pitch returned in the pitch field of pitchedDevPtr is the width in bytes of the allocation.

Usage

1
cudaMalloc3D(extent)

Arguments

extent

Requested allocation size (width field in bytes)

Value

pitchedDevPtr

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html

See Also

cudaMallocPitch cudaFree cudaMemcpy3D cudaMemset3D cudaMalloc3DArray cudaMallocArray cudaFreeArray cudaMallocHost cudaFreeHost cudaHostAlloc make_cudaPitchedPtr make_cudaExtent


duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.