Home
last modified time | relevance | path

Searched refs:parallel_context (Results 1 – 6 of 6) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/utils/
Dcomm_manager.cc226 auto parallel_context = parallel::ParallelContext::GetInstance(); in GetRank() local
227 MS_EXCEPTION_IF_NULL(parallel_context); in GetRank()
228 if (parallel_context->parallel_mode() != parallel::STAND_ALONE) { in GetRank()
250 auto parallel_context = parallel::ParallelContext::GetInstance(); in IsStandAlone() local
251 MS_EXCEPTION_IF_NULL(parallel_context); in IsStandAlone()
252 return parallel_context->parallel_mode() == parallel::STAND_ALONE; in IsStandAlone()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dlaunch_mul.cc61 auto parallel_context = parallel::ParallelContext::GetInstance(); in ObtainMulInputsAddr() local
62 MS_EXCEPTION_IF_NULL(parallel_context); in ObtainMulInputsAddr()
63 auto device_num = parallel_context->device_num(); in ObtainMulInputsAddr()
Dbucket.cc87 auto parallel_context = parallel::ParallelContext::GetInstance(); in CalculateMean() local
88 MS_EXCEPTION_IF_NULL(parallel_context); in CalculateMean()
89 auto grad_mean = parallel_context->gradients_mean(); in CalculateMean()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/
Dcommunication_op_fusion.cc155 auto parallel_context = parallel::ParallelContext::GetInstance(); in GetSplitSegments() local
156 MS_EXCEPTION_IF_NULL(parallel_context); in GetSplitSegments()
158 if (!parallel_context->enable_parallel_optimizer()) { in GetSplitSegments()
159 split_indices = parallel_context->GetAllReduceFusionSplitIndices(group); in GetSplitSegments()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dsession_basic.cc2389 auto parallel_context = parallel::ParallelContext::GetInstance(); in GetAllReduceSplitIndex() local
2390 MS_EXCEPTION_IF_NULL(parallel_context); in GetAllReduceSplitIndex()
2393 return parallel_context->GetAllReduceFusionSplitIndices(group); in GetAllReduceSplitIndex()
2470 auto parallel_context = parallel::ParallelContext::GetInstance(); in InitAllBucket() local
2471 MS_EXCEPTION_IF_NULL(parallel_context); in InitAllBucket()
2472 auto parallel_mode = parallel_context->parallel_mode(); in InitAllBucket()
2512 auto parallel_context = parallel::ParallelContext::GetInstance(); in AddGradAddrToBucket() local
2513 MS_EXCEPTION_IF_NULL(parallel_context); in AddGradAddrToBucket()
2514 auto parallel_mode = parallel_context->parallel_mode(); in AddGradAddrToBucket()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.cc757 const auto &parallel_context = parallel::ParallelContext::GetInstance(); in CheckPyNativeContext() local
758 MS_EXCEPTION_IF_NULL(parallel_context); in CheckPyNativeContext()
761 const auto &parallel_mode = parallel_context->parallel_mode(); in CheckPyNativeContext()