MCPcopy Create free account
hub / github.com/apache/arrow / garrow_cuda_buffer_new_ipc

Function garrow_cuda_buffer_new_ipc

c_glib/arrow-cuda-glib/cuda.cpp:298–311  ·  view source on GitHub ↗

* garrow_cuda_buffer_new_ipc: * @context: A #GArrowCUDAContext. * @handle: A #GArrowCUDAIPCMemoryHandle to be communicated. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): A newly created #GArrowCUDABuffer on * success, %NULL on error. The buffer has data from the IPC target. * * Since: 0.8.0 */

Source from the content-addressed store, hash-verified

296 * Since: 0.8.0
297 */
298GArrowCUDABuffer *
299garrow_cuda_buffer_new_ipc(GArrowCUDAContext *context,
300 GArrowCUDAIPCMemoryHandle *handle,
301 GError **error)
302{
303 auto arrow_context = garrow_cuda_context_get_raw(context);
304 auto arrow_handle = garrow_cuda_ipc_memory_handle_get_raw(handle);
305 auto arrow_buffer = arrow_context->OpenIpcBuffer(*arrow_handle);
306 if (garrow::check(error, arrow_buffer, "[cuda][buffer][new-ipc]")) {
307 return garrow_cuda_buffer_new_raw(&(*arrow_buffer));
308 } else {
309 return NULL;
310 }
311}
312
313/**
314 * garrow_cuda_buffer_new_record_batch:

Callers

nothing calls this directly

Calls 5

checkFunction · 0.50
OpenIpcBufferMethod · 0.45

Tested by

no test coverage detected