| 99 | // ---------------------------------------------------------------------- |
| 100 | |
| 101 | CudaBuffer::CudaBuffer(uint8_t* data, int64_t size, |
| 102 | const std::shared_ptr<CudaContext>& context, bool own_data, |
| 103 | bool is_ipc) |
| 104 | : Buffer(data, size), context_(context), own_data_(own_data), is_ipc_(is_ipc) { |
| 105 | is_mutable_ = true; |
| 106 | SetMemoryManager(context_->memory_manager()); |
| 107 | } |
| 108 | |
| 109 | CudaBuffer::CudaBuffer(uintptr_t address, int64_t size, |
| 110 | const std::shared_ptr<CudaContext>& context, bool own_data, |