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

Function garrow_cuda_buffer_export

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

* garrow_cuda_buffer_export: * @buffer: A #GArrowCUDABuffer. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): A newly created * #GArrowCUDAIPCMemoryHandle to handle the exported buffer on * success, %NULL on error * * Since: 0.8.0 */

Source from the content-addressed store, hash-verified

401 * Since: 0.8.0
402 */
403GArrowCUDAIPCMemoryHandle *
404garrow_cuda_buffer_export(GArrowCUDABuffer *buffer, GError **error)
405{
406 auto arrow_buffer = garrow_cuda_buffer_get_raw(buffer);
407 auto arrow_handle = arrow_buffer->ExportForIpc();
408 if (garrow::check(error, arrow_handle, "[cuda][buffer][export-for-ipc]")) {
409 return garrow_cuda_ipc_memory_handle_new_raw(&(*arrow_handle));
410 } else {
411 return NULL;
412 }
413}
414
415/**
416 * garrow_cuda_buffer_get_context:

Callers

nothing calls this directly

Calls 4

ExportForIpcMethod · 0.80
checkFunction · 0.50

Tested by

no test coverage detected