1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2019-04-29 20:29:56 +08:00
parent 158e7f72d4
commit 778f3e4c1f

View File

@@ -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)
} }
} }
} }