Skip to content

Commit

Permalink
rebase mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Dec 5, 2019
1 parent d42a072 commit ed8ebc4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions agent/api/task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,9 @@ func (task *Task) PostUnmarshalTask(cfg *config.Config,
return err
}

if cfg.GPUSupportEnabled {
err = task.addGPUResource()
if err != nil {
seelog.Errorf("Task [%s]: could not initialize GPU associations: %v", task.Arn, err)
return apierrors.NewResourceInitError(task.Arn, err)
}
task.NvidiaRuntime = cfg.NvidiaRuntime
if err := task.addGPUResource(cfg); err != nil {
seelog.Errorf("Task [%s]: could not initialize GPU associations: %v", task.Arn, err)
return apierrors.NewResourceInitError(task.Arn, err)
}

task.initializeCredentialsEndpoint(credentialsManager)
Expand Down

0 comments on commit ed8ebc4

Please sign in to comment.