Home
last modified time | relevance | path

Searched refs:DeviceAddress (Results 1 – 25 of 61) sorted by relevance

123

/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_info.h52 const DeviceAddress *GetOutputAddr(size_t index) const;
56 DeviceAddress *GetWorkspaceAddr(size_t index) const;
73 …const std::vector<std::shared_ptr<DeviceAddress>> &output_address_list() const { return output_add… in output_address_list()
74 …const std::vector<std::shared_ptr<DeviceAddress>> &workspace_address_list() const { return workspa… in workspace_address_list()
79 std::vector<std::shared_ptr<DeviceAddress>> output_address_list_;
80 std::vector<std::shared_ptr<DeviceAddress>> workspace_address_list_;
Ddevice_address.h66 class DeviceAddress : public mindspore::DeviceSync {
68 explicit DeviceAddress(void *ptr, size_t size) : ptr_(ptr), size_(size) {} in DeviceAddress() function
69 explicit DeviceAddress(void *ptr, size_t size, const string &format, TypeId type_id) in DeviceAddress() function
71 explicit DeviceAddress(void *ptr, size_t size, const std::string &format, TypeId type_id, in DeviceAddress() function
74 virtual ~DeviceAddress() { ptr_ = nullptr; } in ~DeviceAddress()
133 using DeviceAddressPtr = std::shared_ptr<DeviceAddress>;
Dkernel_info.cc25 const DeviceAddress *KernelInfo::GetOutputAddr(size_t index) const { in GetOutputAddr()
68 DeviceAddress *KernelInfo::GetWorkspaceAddr(size_t index) const { in GetWorkspaceAddr()
Dbucket.cc76 auto device_address = std::dynamic_pointer_cast<DeviceAddress>(tensor->device_address()); in UpdateTensorAddr()
Dkernel_runtime.cc256 …auto output_address = std::dynamic_pointer_cast<device::DeviceAddress>(current_tensor->device_addr… in RunOpMallocPre()
407 …auto output_address = std::dynamic_pointer_cast<device::DeviceAddress>(current_tensor->device_addr… in RunOpAssignInputMemory()
450 …AnfAlgo::SetOutputAddr(std::dynamic_pointer_cast<device::DeviceAddress>(device_address), iter.seco… in RunOpAssignOutputMemory()
540 …AnfAlgo::SetOutputAddr(std::dynamic_pointer_cast<device::DeviceAddress>(pre_output_tensors[i]->dev… in RunOpAssignOutputNodeMemory()
543 …AnfAlgo::SetOutputAddr(std::dynamic_pointer_cast<device::DeviceAddress>(pre_output_tensors[i]->dev… in RunOpAssignOutputNodeMemory()
936 auto tensor_address = std::dynamic_pointer_cast<device::DeviceAddress>(tensor->device_address()); in AssignExtraStaticMem()
965 … auto output_address = std::dynamic_pointer_cast<device::DeviceAddress>(tensor->device_address()); in AssignValueNodeTensor()
967 …AnfAlgo::SetOutputAddr(std::dynamic_pointer_cast<device::DeviceAddress>(tensor->device_address()),… in AssignValueNodeTensor()
1287 … const DeviceAddress *device_address, const kernel::AddressPtr &kernel_addr) { in GetOrMallocAddress()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_device_address.h27 class CPUDeviceAddress : public DeviceAddress {
29 CPUDeviceAddress(void *ptr, size_t size) : DeviceAddress(ptr, size) {} in CPUDeviceAddress()
32 : DeviceAddress(ptr, size, format, type_id) {} in CPUDeviceAddress()
35 : DeviceAddress(ptr, size, format, type_id, node_index) {} in CPUDeviceAddress()
Dcpu_kernel_runtime.h69 void AddRuntimeAddress(DeviceAddress *address, std::vector<kernel::AddressPtr> *input_list);
Dcpu_kernel_runtime.cc102 …AnfAlgo::SetOutputAddr(std::dynamic_pointer_cast<device::DeviceAddress>(tensor->device_address()),… in AssignValueNodeAddress()
374 auto address_ptr = std::dynamic_pointer_cast<device::DeviceAddress>(address); in BindOutputTensorAddressPtr()
391 void CPUKernelRuntime::AddRuntimeAddress(DeviceAddress *address, std::vector<kernel::AddressPtr> *i… in AddRuntimeAddress()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_device_address.h32 class GPUDeviceAddress : public DeviceAddress {
34 GPUDeviceAddress(void *ptr, size_t size) : DeviceAddress(ptr, size) {} in GPUDeviceAddress()
36 : DeviceAddress(ptr, size, format, type_id) {} in GPUDeviceAddress()
38 : DeviceAddress(ptr, size, format, type_id, node_index) {} in GPUDeviceAddress()
Dgpu_bucket.cc59 …DeviceAddressPtr device_address = std::dynamic_pointer_cast<DeviceAddress>(tensor->device_address(… in AllocateAllReduceAddr()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_device_address.h36 class AscendDeviceAddress : public DeviceAddress {
38 explicit AscendDeviceAddress(void *ptr, size_t size) : DeviceAddress(ptr, size) {} in AscendDeviceAddress()
40 : DeviceAddress(ptr, size, format, type_id) {} in AscendDeviceAddress()
43 : DeviceAddress(ptr, size, format, type_id, node_index) {} in AscendDeviceAddress()
Dascend_bucket.cc44 …DeviceAddressPtr device_address = std::dynamic_pointer_cast<DeviceAddress>(tensor->device_address(… in AllocateAllReduceAddr()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.h40 bool AllocateMemory(DeviceAddress *const &address, size_t size) const override;
41 void FreeMemory(DeviceAddress *const &address) const override;
Dcpu_device_context.cc78 bool CPUDeviceContext::AllocateMemory(DeviceAddress *const &address, size_t size) const { in AllocateMemory()
91 void CPUDeviceContext::FreeMemory(DeviceAddress *const &address) const { in FreeMemory()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/
Ddevice_context.h59 virtual bool AllocateMemory(DeviceAddress *const &address, size_t size) const = 0;
60 virtual void FreeMemory(DeviceAddress *const &address) const = 0;
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.h42 bool AllocateMemory(DeviceAddress *const &address, size_t size) const override;
43 void FreeMemory(DeviceAddress *const &address) const override;
/third_party/mindspore/mindspore/ccsrc/backend/session/
Danf_runtime_algorithm.h44 using DeviceAddress = device::DeviceAddress; variable
187 …static const DeviceAddress *GetOutputAddr(const AnfNodePtr &node, size_t output_idx, bool visit_no…
195 static const DeviceAddress *GetPrevNodeOutputAddr(const AnfNodePtr &node, size_t input_idx,
204 static DeviceAddress *GetWorkspaceAddr(const AnfNodePtr &node, size_t output_idx);
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
Ddump_utils.h38 void DumpMemToFile(const std::string &file_path, const device::DeviceAddress &addr, const ShapeVect…
De2e_dump.h73 const device::DeviceAddress &addr, const ShapeVector &int_shapes,
Ddump_utils.cc124 void DumpMemToFile(const std::string &file_path, const device::DeviceAddress &addr, const ShapeVect… in DumpMemToFile()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/
Ddevice_tensor_store.h28 using DeviceTensor = mindspore::device::DeviceAddress;
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkRayTracingUtil.cpp563 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in SerialStorage()
568 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in SerialStorage()
586 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in SerialStorage()
794 …, MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress); in createVertexBuffer()
835 …, MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress); in createIndexBuffer()
1092 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in create()
1097 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in create()
1125 … MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress)); in create()
1592 …| MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress); in createInstanceBuffer()
1597 …, MemoryRequirement::HostVisible | MemoryRequirement::Coherent | MemoryRequirement::DeviceAddress); in createInstanceBuffer()
[all …]
DvkMemUtil.cpp127 const MemoryRequirement MemoryRequirement::DeviceAddress = MemoryRequirement(MemoryRequirement::FLA… member in vk::MemoryRequirement
238 if (requirement & MemoryRequirement::DeviceAddress) in allocate()
DvkMemUtil.hpp92 static const MemoryRequirement DeviceAddress; member in vk::MemoryRequirement
/third_party/mindspore/mindspore/ccsrc/runtime/framework/actor/
Dactor_common.h37 using DeviceTensor = mindspore::device::DeviceAddress;

123