mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-07 05:19:17 +00:00
Fix pass --docker only (i.e. no default container image) for --dynamic-gpus feature
This commit is contained in:
parent
f18c6b809f
commit
b2a4bf08ac
@ -1737,7 +1737,7 @@ class Worker(ServiceCommandSection):
|
|||||||
if self._services_mode and dynamic_gpus:
|
if self._services_mode and dynamic_gpus:
|
||||||
raise ValueError("Combining --dynamic-gpus and --services-mode is not supported")
|
raise ValueError("Combining --dynamic-gpus and --services-mode is not supported")
|
||||||
|
|
||||||
if self._dynamic_gpus == "fractional" and not docker:
|
if self._dynamic_gpus == "fractional" and docker in (None, False):
|
||||||
raise ValueError("Fractional GPUs are only supported in docker-mode, "
|
raise ValueError("Fractional GPUs are only supported in docker-mode, "
|
||||||
"add --docker to allow docker-mode operation")
|
"add --docker to allow docker-mode operation")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user