Skip to content

Commit

Permalink
Merge pull request #27 from johnbelamaric/partitionable-devices
Browse files Browse the repository at this point in the history
Minimal changes for partitionable devices in DRA evolution prototype
  • Loading branch information
johnbelamaric authored Jun 16, 2024
2 parents ec8e028 + 41d297f commit fdc5827
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2,161 deletions.
2 changes: 1 addition & 1 deletion dra-evolution/pkg/gen/nvidia.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func sharedGroupToResources(group newresourceapi.NamedResourcesSharedResourceGro

for _, item := range group.Items {
name := fmt.Sprintf("gpu-%d-%s", gpu, item.Name)
if item.QuantityValue != nil {
if item.QuantityValue != nil && !item.QuantityValue.IsZero() {
resources = append(resources, api.SharedCapacity{
Name: name,
Capacity: *item.QuantityValue,
Expand Down
Loading

0 comments on commit fdc5827

Please sign in to comment.