/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ |
D | group_manager.cc | 78 (MsContext::GetInstance()->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice)) { in CreateGroupByExecutor() 91 (MsContext::GetInstance()->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice)) { in DestroyGroupByExecutor() 104 std::string device_name = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in CreateGroups() 112 (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice)) { in CreateGroups() 147 std::string device_name = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in CreateGroups() 197 std::string device_name = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in CreateGroup() 217 std::string device_name = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in DestroyGroup()
|
/third_party/mindspore/tests/ut/cpp/pynative/ |
D | pynative_execute_test.cc | 74 ASSERT_EQ(ctx3->get_param<std::string>(MS_CTX_DEVICE_TARGET), "CPU"); in TEST_F() 77 ctx3->set_param<std::string>(MS_CTX_DEVICE_TARGET, "GPU"); in TEST_F() 82 ASSERT_EQ(ctx4->get_param<std::string>(MS_CTX_DEVICE_TARGET), "GPU"); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/ |
D | dump_json_parser.cc | 190 ms_info["device_target"] = context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in CopyMSCfgJsonToDir() 242 if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in ParseCommonDumpSetting() 244 } else if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice) { in ParseCommonDumpSetting() 289 if (e2e_dump_enabled_ && context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in ParseE2eDumpSetting() 370 } else if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kCPUDevice) { in ParseIteration() 495 if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice) { in JudgeDumpEnabled() 499 if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in JudgeDumpEnabled() 509 if (context->get_param<std::string>(MS_CTX_DEVICE_TARGET) != kCPUDevice) { in JudgeDumpEnabled()
|
D | dump_utils.cc | 32 auto device_target = context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in ConvertPhysicalDeviceId()
|
/third_party/mindspore/tests/ut/cpp/tbe/ |
D | tbe_json_creator_test.cc | 44 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F() 89 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F() 132 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F() 190 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F() 244 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F() 315 context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kAscendDevice); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/ |
D | graph_kernel_optimization.cc | 202 is_gpu = (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice); in Run() 203 is_ascend = (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice); in Run()
|
/third_party/mindspore/mindspore/core/utils/ |
D | ms_context.h | 118 MS_CTX_DEVICE_TARGET = MS_CTX_TYPE_STRING_BEGIN, enumerator 233 if (seter_ != nullptr && param == MS_CTX_DEVICE_TARGET) {
|
D | ms_context.cc | 70 set_param<std::string>(MS_CTX_DEVICE_TARGET, target); in MsContext()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/pass/ |
D | convert_const_input_to_attr.cc | 47 auto device = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in Process()
|
D | const_to_attr_strided_slice_grad.cc | 126 if (ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in Process()
|
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/ |
D | pipeline_split.cc | 32 std::string backend = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetWorldGroup()
|
D | pipeline.cc | 163 if (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in SetLoopCount() 165 } else if (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice) { in SetLoopCount() 1297 std::string device_name = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in InitHccl() 1300 ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in InitHccl() 1394 std::string device_name = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in StartUpProfiling() 1396 ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice) { in StartUpProfiling()
|
/third_party/mindspore/mindspore/core/ir/ |
D | anf.cc | 545 return context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetOriginNodeTarget() 551 std::string default_target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetCNodeTarget() 562 std::string last_target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in ContainMultiTarget()
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/ |
D | ms_context_py.cc | 88 .value("device_target", MsCtxParam::MS_CTX_DEVICE_TARGET) in __anon7eb2a90d0202()
|
/third_party/mindspore/mindspore/core/ops/ |
D | bias_add.cc | 59 auto is_ascend = (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kAscendDevice); in InferShape()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ |
D | kernel_runtime_manager.cc | 119 std::string device_name = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetCurrentKernelRuntime()
|
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/ |
D | batchnorm_info.cc | 214 std::string backend = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in InferReplaceOps()
|
/third_party/mindspore/mindspore/ccsrc/utils/ |
D | comm_manager.cc | 217 std::string backend = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetRank()
|
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/ |
D | ps_cache_manager.h | 66 auto devcie_target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in EmbeddingDeviceCache()
|
/third_party/mindspore/mindspore/ccsrc/utils/context/ |
D | graph_kernel_flags.cc | 175 bool is_gpu = (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) == kGPUDevice); in RegisterFlags()
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/acl/ |
D | acl_model_multi.cc | 104 context_ptr->set_param<std::string>(MS_CTX_DEVICE_TARGET, kDavinciMultiGraphInferenceDevice); in Build()
|
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/gpu/ |
D | gpu_graph_impl.cc | 58 ms_context->set_param<std::string>(MS_CTX_DEVICE_TARGET, kGPUDevice); in InitEnv()
|
/third_party/mindspore/mindspore/ccsrc/vm/ |
D | transform.cc | 573 std::string target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in CreateBackend() 612 std::string target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in SetMindRTEnable()
|
D | graph_partition.cc | 43 std::string default_target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in GetOtherTarget() 680 std::string default_target = context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET); in Partition()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/ |
D | helper.cc | 262 if (context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) != kAscendDevice && in IsNopNode() 263 context_ptr->get_param<std::string>(MS_CTX_DEVICE_TARGET) != kGPUDevice) { in IsNopNode() 722 auto device = ms_context->get_param<std::string>(MS_CTX_DEVICE_TARGET); in RectifyAbstractFromRegAttr()
|