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

Method NonPrimaryRawContext

cpp/src/arrow/gpu/cuda_test.cc:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 Result<CUcontext> NonPrimaryRawContext() {
93 CUcontext ctx;
94#if CUDA_VERSION >= 13000
95 RETURN_NOT_OK(StatusFromCuda(cuCtxCreate(&ctx, /*ctxCreateParams=*/nullptr,
96 /*flags=*/0, device_->handle())));
97#else
98 RETURN_NOT_OK(StatusFromCuda(cuCtxCreate(&ctx, /*flags=*/0, device_->handle())));
99#endif
100 non_primary_contexts_.push_back(ctx);
101 return ctx;
102 }
103
104 Result<std::shared_ptr<CudaContext>> NonPrimaryContext() {
105 ARROW_ASSIGN_OR_RAISE(auto cuctx, NonPrimaryRawContext());

Callers

nothing calls this directly

Calls 3

StatusFromCudaFunction · 0.85
push_backMethod · 0.80
handleMethod · 0.45

Tested by

no test coverage detected