cudaFree Interface

interface

Frees memory on the device.


Called by

interface~~cudafree~~CalledByGraph interface~cudafree cudaFree proc~destroy~3 nvrtc_kernel%destroy proc~destroy~3->interface~cudafree proc~free_mem free_mem proc~free_mem->interface~cudafree proc~create~2 nvrtc_kernel%create proc~create~2->proc~destroy~3 proc~destroy~7 transpose_handle_cuda%destroy proc~destroy~7->proc~destroy~3 proc~mem_free~3 abstract_transpose_plan%mem_free proc~mem_free~3->proc~free_mem proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~free_mem proc~run_autotune_backend->proc~destroy~7 proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~create_cuda transpose_plan_cuda%create_cuda proc~create_cuda->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create_cuda->proc~autotune_grid_decomposition proc~create~7 transpose_handle_cuda%create proc~create~7->proc~create~2 proc~destroy_cuda transpose_plan_cuda%destroy_cuda proc~destroy_cuda->proc~destroy~7 proc~destroy_cuda->proc~mem_free~3 proc~autotune_grid_decomposition->proc~autotune_grid

public function cudaFree(ptr) result(cudaError_t) bind(C, name="cudaFree")

Arguments

Type IntentOptional Attributes Name
type(c_ptr), value :: ptr

Pointer to memory to free

Return Value integer(kind=c_int)

Returns cudaSuccess if memory was freed successfully, or an error code if there was an issue.