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

Method Record

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

Source from the content-addressed store, hash-verified

341}
342
343Status CudaDevice::SyncEvent::Record(const Device::Stream& st) {
344 auto cuda_stream = checked_cast<const CudaDevice::Stream*, const Device::Stream*>(&st);
345 if (!cuda_stream) {
346 return Status::Invalid("CudaDevice::Event cannot record on non-cuda stream");
347 }
348
349 ContextSaver set_temporary(reinterpret_cast<CUcontext>(context_.get()->handle()));
350 CU_RETURN_NOT_OK("cuEventRecord", cuEventRecord(value(), cuda_stream->value()));
351 return Status::OK();
352}
353
354// ----------------------------------------------------------------------
355// CudaMemoryManager implementation

Callers 1

TEST_FFunction · 0.45

Calls 6

valueFunction · 0.70
InvalidFunction · 0.50
OKFunction · 0.50
handleMethod · 0.45
getMethod · 0.45
valueMethod · 0.45

Tested by 1

TEST_FFunction · 0.36