cudaFree Interface

interface


Called by

interface~~cudafree~~CalledByGraph interface~cudafree cudaFree proc~destroy~4 nvrtc_kernel%destroy proc~destroy~4->interface~cudafree proc~free_mem free_mem proc~free_mem->interface~cudafree proc~get_kernel get_kernel proc~get_kernel->interface~cudafree proc~create~4 nvrtc_kernel%create proc~create~4->proc~destroy~4 proc~create~4->proc~get_kernel proc~destroy~9 transpose_handle_cuda%destroy proc~destroy~9->proc~destroy~4 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~9 proc~autotune_grid~2 autotune_grid proc~autotune_grid~2->proc~run_autotune_backend proc~create_cuda transpose_plan_cuda%create_cuda proc~create_cuda->proc~run_autotune_backend proc~autotune_grid_decomposition~2 autotune_grid_decomposition proc~create_cuda->proc~autotune_grid_decomposition~2 proc~create~9 transpose_handle_cuda%create proc~create~9->proc~create~4 proc~destroy_cuda transpose_plan_cuda%destroy_cuda proc~destroy_cuda->proc~destroy~9 proc~destroy_cuda->proc~mem_free~3 proc~autotune_grid_decomposition~2->proc~autotune_grid~2

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.

Description

Frees memory on the device.