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

Method GetContext

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

Source from the content-addressed store, hash-verified

245}
246
247Result<std::shared_ptr<CudaContext>> CudaDevice::GetContext() {
248 // XXX should we cache a default context in CudaDevice instance?
249 auto context = std::shared_ptr<CudaContext>(new CudaContext());
250 auto self = checked_pointer_cast<CudaDevice>(shared_from_this());
251 RETURN_NOT_OK(context->impl_->Init(self));
252 return context;
253}
254
255Result<std::shared_ptr<CudaContext>> CudaDevice::GetSharedContext(void* handle) {
256 auto context = std::shared_ptr<CudaContext>(new CudaContext());

Callers 11

LogMethod · 0.45
GetContextMethod · 0.45
SetUpMethod · 0.45
DoActionMethod · 0.45
TEST_FMethod · 0.45
StartCallMethod · 0.45
mainFunction · 0.45
SpanOptionsWithParentFunction · 0.45

Calls 1

InitMethod · 0.45

Tested by 3

SetUpMethod · 0.36
DoActionMethod · 0.36
TEST_FMethod · 0.36