cudaMemGetInfo Interface

interface

Returns the amount of free and total memory on the device.


Called by

interface~~cudamemgetinfo~~CalledByGraph interface~cudamemgetinfo cudaMemGetInfo proc~alloc_mem alloc_mem proc~alloc_mem->interface~cudamemgetinfo proc~alloc_and_set_aux alloc_and_set_aux proc~alloc_and_set_aux->proc~alloc_mem proc~mem_alloc~3 abstract_transpose_plan%mem_alloc proc~mem_alloc~3->proc~alloc_mem proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~alloc_mem proc~run_autotune_backend->proc~alloc_and_set_aux proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~create_cuda transpose_plan_cuda%create_cuda proc~create_cuda->proc~alloc_and_set_aux proc~create_cuda->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create_cuda->proc~autotune_grid_decomposition proc~autotune_grid_decomposition->proc~autotune_grid

public function cudaMemGetInfo(free, total) result(cudaError_t) bind(C, name="cudaMemGetInfo")

Arguments

Type IntentOptional Attributes Name
integer(kind=c_size_t) :: free

Free memory in bytes

integer(kind=c_size_t) :: total

Total memory in bytes

Return Value integer(kind=c_int)

Returns cudaSuccess if the memory information was retrieved successfully, or an error code if there was an issue.