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

Method WrapDeviceSyncEvent

cpp/src/arrow/gpu/cuda_context.cc:385–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385Result<std::shared_ptr<Device::SyncEvent>> CudaMemoryManager::WrapDeviceSyncEvent(
386 void* sync_event, Device::SyncEvent::release_fn_t release_sync_event) {
387 if (!release_sync_event) {
388 release_sync_event = [](void*) {};
389 }
390
391 auto ev = reinterpret_cast<CUevent*>(sync_event);
392 ARROW_ASSIGN_OR_RAISE(auto context, cuda_device()->GetContext());
393 return std::shared_ptr<Device::SyncEvent>(
394 new CudaDevice::SyncEvent(context, ev, release_sync_event));
395}
396
397Result<std::shared_ptr<io::RandomAccessFile>> CudaMemoryManager::GetBufferReader(
398 std::shared_ptr<Buffer> buf) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected