Skip to content
Snippets Groups Projects
Commit 2a7513e8 authored by Daniel CARRON's avatar Daniel CARRON :b:
Browse files

Assign CUDA_VISIBLE_DEVICES if device specified

parent f53b7d95
No related branches found
No related tags found
1 merge request!4Moved code to lightning
Pipeline #72516 canceled
......@@ -42,6 +42,7 @@ class AcceleratorProcessor:
if len(split_accelerator) > 1:
devices = split_accelerator[1:]
devices = [int(i) for i in devices]
os.environ["CUDA_VISIBLE_DEVICES"] = devices
else:
devices = "auto"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment