Home
last modified time | relevance | path

Searched refs:device_ptr_list (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dmemory_manager.cc179 auto device_ptr_list = MallocContinuousMemFromMemPool(total_size, size_list); in MallocContinuousMemFromMemPool() local
180 if (device_ptr_list.empty()) { in MallocContinuousMemFromMemPool()
183 if (addr_list.size() != device_ptr_list.size()) { in MallocContinuousMemFromMemPool()
185 << device_ptr_list.size(); in MallocContinuousMemFromMemPool()
188 MS_EXCEPTION_IF_NULL(device_ptr_list[i]); in MallocContinuousMemFromMemPool()
190 addr_list[i]->ptr_ = device_ptr_list[i]; in MallocContinuousMemFromMemPool()
201 std::vector<void *> device_ptr_list; in MallocContinuousMemFromMemPool() local
203 device_ptr_list.emplace_back(nullptr); in MallocContinuousMemFromMemPool()
205 return device_ptr_list; in MallocContinuousMemFromMemPool()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_memory_manager.cc41 auto device_ptr_list = MallocContinuousMemFromMemPool(total_size, size_list); in MallocContinuousMemFromMemPool() local
42 if (device_ptr_list.size() == 0) { in MallocContinuousMemFromMemPool()
45 if (addr_list.size() != device_ptr_list.size()) { in MallocContinuousMemFromMemPool()
54 auto new_addr = device_ptr_list[i]; in MallocContinuousMemFromMemPool()