Skip to main content

free

Function free 

Source
pub fn free(ptr: DevicePtr) -> CudaRtResult<()>
Expand description

Free device memory previously allocated with malloc.

Mirrors cudaFree.

ยงErrors

Propagates driver errors. Passing DevicePtr::NULL is a no-op.