Skip to content

Commit

Permalink
fix devices registry name error for Cambricon and Hygon this two type
Browse files Browse the repository at this point in the history
Signed-off-by: rongfu.leng <[email protected]>
  • Loading branch information
lengrongfu committed Mar 15, 2024
1 parent 58275e5 commit 73a0bdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/device/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ func GetDevices() map[string]Devices {

func init() {
devices = make(map[string]Devices)
devices["Cambricon"] = cambricon.InitMLUDevice()
devices["NVIDIA"] = nvidia.InitNvidiaDevice()
devices["Hygon"] = hygon.InitDCUDevice()
devices["Iluvatar"] = iluvatar.InitIluvatarDevice()
devices[cambricon.CambriconMLUDevice] = cambricon.InitMLUDevice()
devices[nvidia.NvidiaGPUDevice] = nvidia.InitNvidiaDevice()
devices[hygon.HygonDCUDevice] = hygon.InitDCUDevice()
devices[iluvatar.IluvatarGPUDevice] = iluvatar.InitIluvatarDevice()
DevicesToHandle = []string{}
DevicesToHandle = append(DevicesToHandle, nvidia.NvidiaGPUCommonWord)
DevicesToHandle = append(DevicesToHandle, cambricon.CambriconMLUCommonWord)
Expand Down

0 comments on commit 73a0bdf

Please sign in to comment.