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

Method Init

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

Source from the content-addressed store, hash-verified

78 Impl() : bytes_allocated_(0) {}
79
80 Status Init(const std::shared_ptr<CudaDevice>& device) {
81 mm_ = checked_pointer_cast<CudaMemoryManager>(device->default_memory_manager());
82 props_ = &device->impl_->props;
83 own_context_ = true;
84 CU_RETURN_NOT_OK("cuDevicePrimaryCtxRetain",
85 cuDevicePrimaryCtxRetain(&context_, props_->handle_));
86 is_open_ = true;
87 return Status::OK();
88 }
89
90 Status InitShared(const std::shared_ptr<CudaDevice>& device, CUcontext ctx) {
91 mm_ = checked_pointer_cast<CudaMemoryManager>(device->default_memory_manager());

Callers

nothing calls this directly

Calls 2

OKFunction · 0.50

Tested by

no test coverage detected