mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AllocatorFIFO struct {
|
type AllocatorFIFO struct {
|
||||||
@@ -98,6 +99,7 @@ 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user