cudaMalloc Interface

interface


Called by

interface~~cudamalloc~~CalledByGraph interface~cudamalloc cudaMalloc proc~alloc_mem alloc_mem proc~alloc_mem->interface~cudamalloc proc~get_kernel get_kernel proc~get_kernel->interface~cudamalloc proc~alloc_and_set_aux alloc_and_set_aux proc~alloc_and_set_aux->proc~alloc_mem proc~create~7 kernel_device%create proc~create~7->proc~get_kernel proc~execute_autotune execute_autotune proc~execute_autotune->proc~alloc_mem proc~execute_autotune->proc~alloc_and_set_aux proc~mem_alloc reshape_plan_base%mem_alloc proc~mem_alloc->proc~alloc_mem proc~autotune_reshape_plan autotune_reshape_plan proc~autotune_reshape_plan->proc~execute_autotune proc~get_plan_execution_time get_plan_execution_time proc~get_plan_execution_time->proc~execute_autotune proc~run_autotune_backend run_autotune_backend proc~run_autotune_backend->proc~execute_autotune proc~run_autotune_datatypes run_autotune_datatypes proc~run_autotune_backend->proc~run_autotune_datatypes proc~autotune_grid autotune_grid proc~autotune_grid->proc~run_autotune_backend proc~autotune_transpose_id autotune_transpose_id proc~autotune_transpose_id->proc~get_plan_execution_time proc~create~16 transpose_plan%create proc~create~16->proc~run_autotune_backend proc~autotune_grid_decomposition autotune_grid_decomposition proc~create~16->proc~autotune_grid_decomposition proc~create~9 reshape_plan%create proc~create~9->proc~autotune_reshape_plan proc~autotune_grid_decomposition->proc~autotune_grid proc~run_autotune_datatypes->proc~autotune_transpose_id

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

Arguments

Type IntentOptional Attributes Name
type(c_ptr) :: ptr

Pointer to allocated device memory

integer(kind=c_size_t), value :: count

Requested allocation size in bytes

Return Value integer(kind=c_int)

Returns cudaSuccess if memory was allocated successfully, or cudaErrorMemoryAllocation if the memory could not be allocated.

Description

Allocates memory on the device.