cudaFree Interface

interface


Called by

interface~~cudafree~~CalledByGraph interface~cudafree cudaFree proc~free_mem free_mem proc~free_mem->interface~cudafree proc~get_kernel get_kernel proc~get_kernel->interface~cudafree proc~create~8 kernel_device%create proc~create~8->proc~get_kernel proc~mem_free transpose_plan%mem_free proc~mem_free->proc~free_mem proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~free_mem proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~create transpose_plan%create proc~create->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create->proc~autotune_grid_decomposition proc~destroy transpose_plan%destroy proc~destroy->proc~mem_free 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.