Home
last modified time | relevance | path

Searched refs:SetDevice (Results 1 – 9 of 9) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dcuda_driver.h67 static bool SetDevice(int index);
Dgpu_device_manager.cc27 …CHECK_OP_RET_WITH_EXCEPT(CudaDriver::SetDevice(SizeToInt(cur_dev_id_)), "Failed to set current dev… in InitDevice()
Dcuda_driver.cc242 bool CudaDriver::SetDevice(int index) { in SetDevice() function in mindspore::device::gpu::CudaDriver
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/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/backend/optimizer/trt_pass/
Dgraph_converter.cc243 bool ret = device::gpu::CudaDriver::SetDevice(UintToInt(device_id)); in Run()
/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()