Skip to content

Commit

Permalink
support hygon multi cards
Browse files Browse the repository at this point in the history
Signed-off-by: limengxuan <[email protected]>
  • Loading branch information
archlitchi committed Jul 17, 2024
1 parent eb2a5af commit 9a06763
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/pkg/dcu/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,12 +435,6 @@ func (p *Plugin) createvdevFile(current *corev1.Pod, ctr *corev1.Container, req
var devidx, pipeid, vdevidx int
coremsk := ""
if len(req) > 1 {
for _, val := range req {
if val.Usedcores > 0 || val.Usedmem > 0 {
klog.Errorf("vdev only support one device per container")
return "", errors.New("vdev only support one device per container")
}
}
return "", nil
}
for _, val := range req {
Expand Down

0 comments on commit 9a06763

Please sign in to comment.