Constructor
ArrowCUDAHostBuffernew
since: 0.8.0
Declaration [src]
GArrowCUDAHostBuffer*
garrow_cuda_host_buffer_new (
gint gpu_number,
gint64 size,
GError** error
)
Parameters
gpu_number-
Type:
gintA GPU device number for the target context.
size-
Type:
gint64The number of bytes to be allocated on CPU host.
error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will left initialized to NULLby the constructor if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: 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. |