Home
last modified time | relevance | path

Searched refs:workspace_sizes (Results 1 – 20 of 20) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/runtime/hccl_adapter/
Dconverter.cc219 auto workspace_sizes = op->GetWorkspaceBytes(); in ParseDomiTask() local
220 if (workspace_sizes.size() != 1) { in ParseDomiTask()
221 MS_LOG(EXCEPTION) << "Unexpected workspace size " << workspace_sizes.size(); in ParseDomiTask()
223 int64_t workspace_size = workspace_sizes[0]; in ParseDomiTask()
Dhccl_adapter.cc254 auto workspace_sizes = op->GetWorkspaceBytes(); in CalcWorkspaceSize() local
255 if (workspace_sizes.size() != 1) { in CalcWorkspaceSize()
256 …MS_LOG(EXCEPTION) << "Unexpected workspace size " << workspace_sizes.size() << ", which should be … in CalcWorkspaceSize()
258 int64_t workspace_size = workspace_sizes[0]; in CalcWorkspaceSize()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ps/
Dapply_momentum_ps_kernel.cc31 const std::vector<size_t> &ApplyMomentumPSKernel::workspace_sizes() const { return GetWorkspaceSize… in workspace_sizes() function in mindspore::kernel::ps::ApplyMomentumPSKernel
Dapply_momentum_ps_kernel.h39 const std::vector<size_t> &workspace_sizes() const override;
Dsparse_apply_adam_ps_kernel.h43 const std::vector<size_t> &workspace_sizes() const override;
Dsparse_apply_lazy_adam_ps_kernel.h42 const std::vector<size_t> &workspace_sizes() const override;
Dembedding_look_up_ps_kernel.h43 const std::vector<size_t> &workspace_sizes() const override;
Dsparse_apply_ftrl_ps_kernel.h44 const std::vector<size_t> &workspace_sizes() const override;
Dpserver_kernel.h45 virtual const std::vector<size_t> &workspace_sizes() const = 0;
Dembedding_look_up_ps_kernel.cc111 const std::vector<size_t> &EmbeddingLookUpPSKernel::workspace_sizes() const { return GetWorkspaceSi… in workspace_sizes() function in mindspore::kernel::ps::EmbeddingLookUpPSKernel
Dsparse_apply_adam_ps_kernel.cc115 const std::vector<size_t> &SparseApplyAdamPSKernel::workspace_sizes() const { return GetWorkspaceSi… in workspace_sizes() function in mindspore::kernel::ps::SparseApplyAdamPSKernel
Dsparse_apply_lazy_adam_ps_kernel.cc117 const std::vector<size_t> &SparseApplyLazyAdamPSKernel::workspace_sizes() const { return GetWorkspa… in workspace_sizes() function in mindspore::kernel::ps::SparseApplyLazyAdamPSKernel
Dsparse_apply_ftrl_ps_kernel.cc126 const std::vector<size_t> &SparseApplyFtrlPSKernel::workspace_sizes() const { return GetWorkspaceSi… in workspace_sizes() function in mindspore::kernel::ps::SparseApplyFtrlPSKernel
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_kernel_runtime.cc640 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in InitKernelWorkspaceAddress() local
641 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in InitKernelWorkspaceAddress()
642 auto device_address = CreateDeviceAddress(nullptr, workspace_sizes[i], "", kTypeUnknown); in InitKernelWorkspaceAddress()
705 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in ClearKernelWorkspaceAddress() local
706 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in ClearKernelWorkspaceAddress()
1165 auto workspace_sizes = kernel_mod.GetWorkspaceSizeList(); in AllocKernelWorkspaceDynamicRes() local
1166 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in AllocKernelWorkspaceDynamicRes()
1167 if (workspace_sizes[i] == 0) { in AllocKernelWorkspaceDynamicRes()
1173 …if (device_address->ptr_ == nullptr && !AttemptMallocMem(device_address, workspace_sizes[i], mock)… in AllocKernelWorkspaceDynamicRes()
1179 workspace->size = workspace_sizes[i]; in AllocKernelWorkspaceDynamicRes()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/
Dgraph_compiler.cc206 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in CreateKernelWorkspaceDeviceAddress() local
207 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in CreateKernelWorkspaceDeviceAddress()
208 …auto device_address = device_context->CreateDeviceAddress(nullptr, workspace_sizes[i], "", kTypeUn… in CreateKernelWorkspaceDeviceAddress()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_kernel_runtime.cc168 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in AssignKernelOutputAddress() local
169 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in AssignKernelOutputAddress()
170 …AnfAlgo::SetWorkspaceAddr(CreateDeviceAddress(nullptr, workspace_sizes[i], kOpFormat_DEFAULT, kNum… in AssignKernelOutputAddress()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/mem_reuse/
Dmem_reuse.cc111 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in InitDynamicWorkspaceKernelRef() local
113 for (auto size : workspace_sizes) { in InitDynamicWorkspaceKernelRef()
/third_party/mindspore/mindspore/ccsrc/ps/
Doptimizer_info_builder.cc36 std::vector<size_t> ws_sizes = pserver_kernel->workspace_sizes(); in Build()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_runtime.cc307 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in ResetNodeAddress() local
308 for (size_t i = 0; i < workspace_sizes.size(); ++i) { in ResetNodeAddress()
309 …AnfAlgo::SetWorkspaceAddr(CreateDeviceAddress(nullptr, workspace_sizes[i], kOpFormat_DEFAULT, kNum… in ResetNodeAddress()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/somas/
Dsomas.cc466 auto workspace_sizes = kernel_mod->GetWorkspaceSizeList(); in InitSomasOutputAndWorkspaceTensors() local
468 for (const auto &size : workspace_sizes) { in InitSomasOutputAndWorkspaceTensors()