Skip to content

Commit

Permalink
scheduler: export GPUPartitionIndexOfNVIDIAHopper
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianyu.wjy <[email protected]>
  • Loading branch information
wangjianyu.wjy committed Jan 20, 2025
1 parent 236bcc9 commit 8fe662c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/scheduler/plugins/deviceshare/allocator_gpu_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

var (
gpuPartitionIndexOfNVIDIAHopper = GPUPartitionIndexer{
GPUPartitionIndexOfNVIDIAHopper = GPUPartitionIndexer{
1: []*PartitionsOfAllocationScore{
{
Partitions: []*apiext.GPUPartition{
Expand Down Expand Up @@ -153,7 +153,7 @@ var (
model := node.Labels[apiext.LabelGPUModel]
switch model {
case "H100", "H800", "H20":
partitionIndexer = gpuPartitionIndexOfNVIDIAHopper
partitionIndexer = GPUPartitionIndexOfNVIDIAHopper
}
return partitionIndexer, partitionPolicy == apiext.GPUPartitionPolicyHonor
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestGetGPUPartitionIndexer(t *testing.T) {
},
},
},
want: gpuPartitionIndexOfNVIDIAHopper,
want: GPUPartitionIndexOfNVIDIAHopper,
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 8fe662c

Please sign in to comment.