| 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()); |
nothing calls this directly
no test coverage detected