Home
last modified time | relevance | path

Searched refs:MS_CTX_DEVICE_ID (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mindspore/mindspore/core/utils/
Dms_context.cc60 set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id); in MsContext()
63 set_param<uint32_t>(MS_CTX_DEVICE_ID, 0); in MsContext()
66 set_param<uint32_t>(MS_CTX_DEVICE_ID, 0); in MsContext()
126 uint32_t device_id = get_param<uint32_t>(MS_CTX_DEVICE_ID); in CreateTensorPrintThread()
Dms_context.h105 MS_CTX_DEVICE_ID = MS_CTX_TYPE_UINT32_BEGIN, enumerator
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dgroup_manager.cc105 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in CreateGroups()
148 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in CreateGroups()
198 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in CreateGroup()
218 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in DestroyGroup()
/third_party/mindspore/mindspore/ccsrc/utils/context/
Dcontext_extends.cc69 uint32_t device_id = ms_context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in OpenTsd()
122 uint32_t device_id = ms_context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in CloseTsd()
244 auto env_device_id = std::to_string(ms_context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID)); in SetHcclOptions()
/third_party/mindspore/mindspore/ccsrc/profiler/device/cpu/
Dcpu_data_saver.cc37 auto device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in WriteFile()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/data/
Ddataset_profiling.cc34 auto device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in GetDeviceId()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/
Dprofiling_utils.cc408 …TaskDescReporter task_reporter(context->get_param<uint32_t>(MS_CTX_DEVICE_ID), "vm_task_desc_info"… in ReportProfilingData()
413 …GraphDescReporter graph_reporter(context->get_param<uint32_t>(MS_CTX_DEVICE_ID), "vm_graph_desc_in… in ReportProfilingData()
423 PointReporter point_reporter(context->get_param<uint32_t>(MS_CTX_DEVICE_ID), "vm_point"); in ReportProfilingData()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/
Dkernel_fusion.cc62 auto device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in KernelFusion()
/third_party/mindspore/mindspore/ccsrc/pybind_api/utils/
Dms_context_py.cc95 .value("device_id", MsCtxParam::MS_CTX_DEVICE_ID) in __anon41857d0f0202()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_runtime_manager.cc118 uint32_t device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in GetCurrentKernelRuntime()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_device_address.cc78 auto device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in SyncMemory()
105 auto device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in DataSync()
171 auto device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in SyncStream()
Dascend_memory_manager.cc63 unsigned int device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in MallocDeviceMemory()
Dascend_kernel_runtime.cc281 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in ReleaseDeviceRes()
1111 …cclAdapter::GetInstance().InitHccl(context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID), rank_id_str, in HcclInit()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/executor/
Dai_core_dynamic_kernel.cc154 auto device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in AllocateWorkspace()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/gpu/
Dgpu_graph_impl.cc57 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id_); in InitEnv()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/
Dgraph_converter.cc242 const auto &device_id = context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in Run()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/ascend/
Dascend_graph_impl.cc305 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id_); in MsEnvGuard()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dpipeline.cc1278 uint32_t device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in InitHccl()
1293 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id); in InitHccl()
1393 uint32_t device_id = ms_context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in StartUpProfiling()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_utils.cc181 soc_info_json["deviceId"] = std::to_string(context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID)); in GenSocInfo()
Dascend_kernel_compile.cc485 static uint32_t source_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in JsonAssemble()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.cc79 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_context_key_.device_id_); in Initialize()
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
Ddump_json_parser.cc510 auto device_id = context->get_param<uint32_t>(MS_CTX_DEVICE_ID); in JudgeDumpEnabled()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_json/
Dtbe_json_creator.cc248 auto device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in GenFusionOpName()
/third_party/mindspore/mindspore/ccsrc/vm/
Dtransform.cc574 uint32_t device_id = context_ptr->get_param<uint32_t>(MS_CTX_DEVICE_ID); in CreateBackend()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dgpu_session.cc116 ms_context->set_param<uint32_t>(MS_CTX_DEVICE_ID, device_id); in Init()

12