Home
last modified time | relevance | path

Searched refs:UintToInt (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/
Dprofiling_manager.cc61 if (ret != UintToInt(PROF_SUCCESS)) { in PluginInit()
122 if (cb_ret != UintToInt(PROF_SUCCESS)) { in StartupProfiling()
166 if (cb_ret != UintToInt(PROF_SUCCESS)) { in ProfStartUp()
227 if (ret != UintToInt(PROF_SUCCESS)) { in CallMsprofReport()
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dnode_manager.cc28 total_node_num_ = UintToInt(initial_total_node_num_); in InitNode()
62 if (meta->rank_id() != UINT32_MAX && UintToInt(meta->rank_id()) <= next_server_rank_id_) { in NextRankId()
101 if (meta->rank_id() != UINT32_MAX && UintToInt(meta->rank_id()) <= next_worker_rank_id_) { in NextRankId()
270 next_server_rank_id_ = UintToInt(*min_rank_id - 1); in ResetMetadata()
308 int32_t NodeManager::worker_num() const { return UintToInt(meta_data_->worker_num); } in worker_num()
310 int32_t NodeManager::server_num() const { return UintToInt(meta_data_->server_num); } in server_num()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dpipeline_split.cc53 global_rank = UintToInt(rank_id); in GetRank()
93 device_num = UintToInt(world_rank_size); in PipelineSplit()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/gpu/
Dgpu_graph_impl.cc61 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id_)); in InitEnv()
210 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id_)); in Run()
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/gpu/
Dgpu_ps_cache.cc30 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id)); in InitDevice()
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/
Dtcp_message_handler.cc81 …pb_message->ParseFromArray(message_buffer_.get(), UintToInt(message_header_.message_meta_length_))… in ReceiveMessage()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_device_manager.cc86 mindspore::device::GpuBufferMgr::GetInstance().set_device_id(UintToInt(device_id)); in set_cur_device_id()
Dgpu_kernel_runtime.cc81 … CHECK_OP_RET_WITH_EXCEPT(CudaDriver::SetDevice(UintToInt(device_id_)), "Failed to set device id"); in Init()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/acl/
Dacl_graph_impl.cc180 device_id_ = UintToInt(device_id); in Load()
/third_party/mindspore/mindspore/core/utils/
Dconvert_utils_base.h110 inline int32_t UintToInt(uint32_t u) { in UintToInt() function
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/
Dgraph_converter.cc243 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id)); in Run()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_kernel_runtime.cc995 auto ret = rtCtxCreate(&rt_context_, 0, UintToInt(device_id_)); in CreateContext()
1010 ret = rtSetDevice(UintToInt(device_id_)); in InitDevice()
1065 ret = rtDeviceReset(UintToInt(device_id)); in ResetDevice()
/third_party/mindspore/mindspore/ccsrc/ps/ps_cache/ascend/
Dascend_ps_cache.cc112 auto ret = rtSetDevice(UintToInt(device_id)); in InitDevice()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.cc527 if (!CudaDriver::SetDevice(UintToInt(device_context_key_.device_id_))) { in BindDeviceToCurrentThread()
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dgpu_session.cc110 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id)); in Init()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/
Dstep_parallel.cc2901 device_num = UintToInt(world_rank_size); in GetCommInfo()
2918 global_rank = UintToInt(rank_id); in GetCommInfo()
/third_party/mindspore/mindspore/ccsrc/transform/graph_ir/
Dconvert.cc1600 return adpt->getOutput(Convert(node), UintToInt(index_stack.top())); in GetHandler()