| 241 | } |
| 242 | |
| 243 | std::shared_ptr<MemoryManager> CudaDevice::default_memory_manager() { |
| 244 | return CudaMemoryManager::Make(shared_from_this()); |
| 245 | } |
| 246 | |
| 247 | Result<std::shared_ptr<CudaContext>> CudaDevice::GetContext() { |
| 248 | // XXX should we cache a default context in CudaDevice instance? |