Skip to content

Commit

Permalink
Fix bug when using int value
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjurado committed Dec 12, 2023
1 parent eef8e56 commit ef1d2bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runners/mlcube_docker/mlcube_docker/docker_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def run(self) -> None:
else:
cuda_visible_devices = num_gpus

cuda_visible_devices = str(cuda_visible_devices)

if cuda_visible_devices.isnumeric():
cuda_visible_devices = str(list(range(cuda_visible_devices)))
cuda_visible_devices = cuda_visible_devices.replace(" ", "")[1:-1]
Expand Down

0 comments on commit ef1d2bb

Please sign in to comment.