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