Constructor

ArrowCUDAHostBuffernew

Declaration [src]

GArrowCUDAHostBuffer*
garrow_cuda_host_buffer_new (
  gint gpu_number,
  gint64 size,
  GError** error
)

Description

No description available.
Available since:0.8.0

Parameters

gpu_number gint
 

A GPU device number for the target context.

size gint64
 

The number of bytes to be allocated on CPU host.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GArrowCUDAHostBuffer
 

A newly created GArrowCUDAHostBuffer on success, NULL on error. The allocated memory is accessible from GPU device for the context.

 The caller of the function takes ownership of the data, and is responsible for freeing it.