Home
last modified time | relevance | path

Searched refs:SyncHostToDevice (Results 1 – 19 of 19) sorted by relevance

/third_party/mindspore/mindspore/core/ir/
Ddevice_sync.h36 virtual bool SyncHostToDevice(size_t size, const void *host_ptr) const { return true; } in SyncHostToDevice() function
40 …virtual bool SyncHostToDevice(const ShapeVector &shape, size_t size, TypeId type, const void *host…
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_device_address.cc67 bool GPUDeviceAddress::SyncHostToDevice(size_t size, const void *host_ptr) const { in SyncHostToDevice() function in mindspore::device::gpu::GPUDeviceAddress
98 bool GPUDeviceAddress::SyncHostToDevice(const ShapeVector &, size_t size, TypeId, const void *host_… in SyncHostToDevice() function in mindspore::device::gpu::GPUDeviceAddress
104 return SyncHostToDevice(size, host_ptr); in SyncHostToDevice()
Dgpu_device_address.h42 bool SyncHostToDevice(size_t size, const void *host_ptr) const override;
44 bool SyncHostToDevice(const ShapeVector &shape, size_t size, TypeId type, const void *host_ptr,
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_device_address.h46 bool SyncHostToDevice(size_t size, const void *host_ptr) const override;
48 bool SyncHostToDevice(const ShapeVector &shape, size_t size, TypeId type, const void *host_ptr,
Dascend_device_address.cc188 bool AscendDeviceAddress::SyncHostToDevice(size_t size, const void *host_ptr) const { in SyncHostToDevice() function in mindspore::device::ascend::AscendDeviceAddress
360 bool AscendDeviceAddress::SyncHostToDevice(const ShapeVector &shape, size_t size, mindspore::TypeId… in SyncHostToDevice() function in mindspore::device::ascend::AscendDeviceAddress
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_device_address.h40 bool SyncHostToDevice(const ShapeVector &shape, size_t size, TypeId type, const void *host_ptr,
Dcpu_device_address.cc101 bool CPUDeviceAddress::SyncHostToDevice(const ShapeVector &, size_t size, TypeId type, const void *… in SyncHostToDevice() function in mindspore::device::cpu::CPUDeviceAddress
Dcpu_kernel_runtime.cc120 …if (!address->SyncHostToDevice(data_shape, LongToSize(tensor->data().nbytes()), tensor->data_type(… in AssignValueNodeAddress()
342 …if (!address->SyncHostToDevice(data_shape, LongToSize(tensor->data().nbytes()), tensor->data_type(… in BindInputTensorAddressPtr()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/host/
Ddynamic_shape_kernel.cc46 output_addr->SyncHostToDevice(output_shape, LongToSize(output_tensor_for_sync->data().nbytes()), in Execute()
Ddynamic_broadcast_gradient_args_kernel.cc181 …if (!out_addr->SyncHostToDevice(out_shape, LongToSize(tensor_for_sync->data().nbytes()), tensor_fo… in SetOutputValue()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dascend_inference_session.cc48 if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), in LoadInputData()
77 if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), in CompileGraphImpl()
Dgpu_inference_session.cc48 if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), in LoadInputData()
77 if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), in CompileGraphImpl()
Dascend_session.cc244 …if (!device_address->SyncHostToDevice(cur_loop_tensor->shape(), LongToSize(cur_loop_tensor->data()… in LoadCtrlInputTensor()
263 …if (!device_address->SyncHostToDevice(next_loop_tensor->shape(), LongToSize(next_loop_tensor->data… in LoadCtrlInputTensor()
280 …if (!device_address->SyncHostToDevice(epoch_tensor->shape(), LongToSize(epoch_tensor->data().nbyte… in LoadCtrlInputTensor()
499 …!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(input_node, 0), size, tensor->data… in LoadInputData()
1748 if (!addr->SyncHostToDevice(trans::GetRuntimePaddingShape(backend_parameter, 0), tensor_size, in SyncInitialTenosrToDevice()
Dgpu_session.cc365 …if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), size, tensor->dat… in LoadInputData()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/actor/
Dactor_common.cc159 return dst_device_tensor->SyncHostToDevice(copy_size, src_device_tensor->GetPtr()); in Copy()
Ddata_prepare_actor.cc49 …if (!device_tensor->SyncHostToDevice(trans::GetRuntimePaddingShape(node, 0), host_tensor_size, hos… in SyncTensorData()
393 if (!device_tensor->SyncHostToDevice(shape, tensor_size, kNumberTypeUInt8, value.data())) { in PrepareDataForValueNode()
Ddata_source_actor.cc287 if (!device_tensor->SyncHostToDevice(trans::GetRuntimePaddingShape(data_nodes_[i], 0), in OnMemoryAllocFinish()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_adjust.cc755 if (!device_address->SyncHostToDevice(trans::GetRuntimePaddingShape(pk_node, 0), in StepLoadCtrlInputs()
842 …if (!device_address->SyncHostToDevice(tensor->shape(), LongToSize(tensor->data().nbytes()), tensor… in InitCtrlInputs()
Dkernel_runtime.cc992 …if (!address->SyncHostToDevice(trans::GetRuntimePaddingShape(value_node, 0), tensor_size, tensor->… in AssignValueNodeTensor()
1056 if (!address->SyncHostToDevice(shape, tensor_size, kNumberTypeUInt8, value.data())) { in AssignStaticMemoryValueNode()