mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
bugfix
This commit is contained in:
@@ -3,7 +3,6 @@ package main
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
"fmt"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type AllocatorFIFO struct {
|
type AllocatorFIFO struct {
|
||||||
@@ -99,10 +98,10 @@ func (allocator *AllocatorFIFO) requestResource(task Task) NodeStatus {
|
|||||||
for j := range node.Status {
|
for j := range node.Status {
|
||||||
if res.Status[i].UUID == node.Status[j].UUID {
|
if res.Status[i].UUID == node.Status[j].UUID {
|
||||||
node.Status[j].MemoryAllocated = task.MemoryGPU
|
node.Status[j].MemoryAllocated = task.MemoryGPU
|
||||||
fmt.Println(node.Status[j].UUID, res.Status[i].UUID)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
|
|||||||
Reference in New Issue
Block a user