cudaFree Interface

interface


Called by

interface~~cudafree~~CalledByGraph interface~cudafree cudaFree proc~execute_test execute_test proc~execute_test->interface~cudafree proc~free_mem free_mem proc~free_mem->interface~cudafree proc~get_kernel get_kernel proc~get_kernel->interface~cudafree proc~create~5 kernel_device%create proc~create~5->proc~get_kernel proc~execute_autotune execute_autotune proc~execute_autotune->proc~free_mem proc~mem_free~4 reshape_plan_base%mem_free proc~mem_free~4->proc~free_mem program~test_device_kernels test_device_kernels program~test_device_kernels->proc~execute_test proc~autotune_adaptive autotune_adaptive proc~autotune_adaptive->proc~execute_autotune proc~autotune_reshape_plan autotune_reshape_plan proc~autotune_reshape_plan->proc~execute_autotune proc~autotune_reshape_plan->proc~autotune_adaptive proc~execute_many execute_many proc~execute_many->proc~execute_autotune proc~execute_single execute_single proc~execute_many->proc~execute_single proc~run_execute_single run_execute_single proc~run_execute_single->proc~execute_autotune proc~create reshape_plan%create proc~create->proc~autotune_reshape_plan proc~execute_single_transpose_modes execute_single_transpose_modes proc~execute_single_transpose_modes->proc~run_execute_single proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~execute_many proc~run_autotune_backend->proc~execute_single proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~create~15 transpose_plan%create proc~create~15->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create~15->proc~autotune_grid_decomposition proc~execute_single->proc~execute_single_transpose_modes 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.

Description

Frees memory on the device.