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

Method InitShared

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

Source from the content-addressed store, hash-verified

88 }
89
90 Status InitShared(const std::shared_ptr<CudaDevice>& device, CUcontext ctx) {
91 mm_ = checked_pointer_cast<CudaMemoryManager>(device->default_memory_manager());
92 props_ = &device->impl_->props;
93 own_context_ = false;
94 context_ = ctx;
95 is_open_ = true;
96 return Status::OK();
97 }
98
99 Status Close() {
100 if (is_open_ && own_context_) {

Callers 1

GetSharedContextMethod · 0.80

Calls 2

OKFunction · 0.50

Tested by

no test coverage detected