* 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 */
| 296 | * Since: 0.8.0 |
| 297 | */ |
| 298 | GArrowCUDABuffer * |
| 299 | garrow_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: |
nothing calls this directly
no test coverage detected