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

Function garrow_cuda_buffer_get_context

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

* garrow_cuda_buffer_get_context: * @buffer: A #GArrowCUDABuffer. * * Returns: (transfer full): A newly created #GArrowCUDAContext for the * buffer. Contexts for the same buffer share the same data internally. * * Since: 0.8.0 */

Source from the content-addressed store, hash-verified

422 * Since: 0.8.0
423 */
424GArrowCUDAContext *
425garrow_cuda_buffer_get_context(GArrowCUDABuffer *buffer)
426{
427 auto arrow_buffer = garrow_cuda_buffer_get_raw(buffer);
428 auto arrow_context = arrow_buffer->context();
429 return garrow_cuda_context_new_raw(&arrow_context);
430}
431
432/**
433 * garrow_cuda_buffer_read_record_batch:

Callers

nothing calls this directly

Calls 2

contextMethod · 0.80

Tested by

no test coverage detected