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 b6bc2df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runners/mlcube_docker/mlcube_docker/docker_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def run(self) -> None:
else:
cuda_visible_devices = num_gpus

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

run_args += f" --env CUDA_VISIBLE_DEVICES={cuda_visible_devices}"
Expand Down

0 comments on commit b6bc2df

Please sign in to comment.