Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haijianyang committed Nov 20, 2023
1 parent 06f69fe commit 63fb199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/elfmachine_controller_gpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (r *ElfMachineReconciler) selectHostAndGPUsForVM(ctx *context.MachineContex

availableHosts := hosts.FilterAvailableHostsWithEnoughMemory(*service.TowerMemory(ctx.ElfMachine.Spec.MemoryMiB))
if len(availableHosts) == 0 {
ctx.Logger.V(2).Info("No available hosts for selecting GPUs")
ctx.Logger.V(2).Info("Waiting for enough available hosts")
return nil, nil, nil
}

Expand Down
4 changes: 3 additions & 1 deletion pkg/service/collections.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ func (s Hosts) IDs() []string {
return res
}

// GPUVMInfos is a set of GPUVMInfos.
// GPUVMInfos is a set of GpuVMInfos.
// Key is the ID of GPU device.
// Value is the GpuVMInfo type with VMs and allocation details.
type GPUVMInfos map[string]*models.GpuVMInfo

// NewGPUVMInfos creates a GPUVMInfos. from a list of values.
Expand Down

0 comments on commit 63fb199

Please sign in to comment.