Bug fix for Thermos Payload generation relating to the GPU being set.
This commit is contained in:
parent
36fdc4abdb
commit
e0ff0d137c
1 changed files with 1 additions and 1 deletions
2
task.go
2
task.go
|
@ -409,7 +409,7 @@ func (t *AuroraTask) BuildThermosPayload() error {
|
|||
t.thermos.disk(*t.resources[DISK].DiskMb)
|
||||
}
|
||||
|
||||
if t.resources[GPU].NumGpus != nil {
|
||||
if t.resources[GPU]!= nil && t.resources[GPU].NumGpus != nil {
|
||||
t.thermos.gpu(*t.resources[GPU].NumGpus)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue