We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94a194b commit 1ca8242Copy full SHA for 1ca8242
proxy.py
@@ -139,10 +139,10 @@ def post(self, tool_name):
139
num_gpus = subprocess.check_output(["nvidia-smi", "-L"]).decode().split("\n")
140
num_gpus = [g.strip() for g in num_gpus]
141
num_gpus = len([g for g in num_gpus if g.startswith("GPU ")])
142
- print(f"Detected {len(num_gpus)} GPUs.")
+ print(f"Detected {num_gpus} GPUs.")
143
cuda_devices_map = dict((i, i) for i in range(num_gpus))
144
145
- num_to_launch = len(num_gpus) * num_per_gpu
+ num_to_launch = num_gpus * num_per_gpu
146
print(f"Will launch {num_to_launch} processes on GPUs.")
147
set_cuda_visible_devices = True
148
0 commit comments