Assign default GPU if no softlimit is given

This commit is contained in:
Ingo Oppermann 2024-10-31 12:18:26 +01:00
parent aa3a5b4978
commit d73afc141c
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -667,6 +667,8 @@ func (r *restream) onBeforeStart(cfg *app.Config) func([]string) ([]string, erro
}
selectedGPU = res.GPU
} else {
selectedGPU = 0
}
if t, hasTask := r.tasks.Load(cfg.ProcessID()); hasTask {