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

Method ExportForIpc

cpp/src/arrow/gpu/cuda_memory.cc:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193Result<std::shared_ptr<CudaIpcMemHandle>> CudaBuffer::ExportForIpc() {
194 if (is_ipc_) {
195 return Status::Invalid("Buffer has already been exported for IPC");
196 }
197 ARROW_ASSIGN_OR_RAISE(auto handle, context_->ExportIpcBuffer(data_, size_));
198 own_data_ = false;
199 return handle;
200}
201
202CudaHostBuffer::CudaHostBuffer(uint8_t* data, const int64_t size)
203 : MutableBuffer(data, size) {

Callers 2

TEST_FFunction · 0.80

Calls 1

InvalidFunction · 0.50

Tested by 1

TEST_FFunction · 0.64