set GPU resource only when config is enabled
@@ -263,11 +263,13 @@ func (task *Task) PostUnmarshalTask(cfg *config.Config,
if err != nil {
return apierrors.NewResourceInitError(task.Arn, 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.initializeCredentialsEndpoint(credentialsManager)
task.initializeContainersV3MetadataEndpoint(utils.NewDynamicUUIDProvider())
task.addNetworkResourceProvisioningDependency(cfg)
