Commit 7a6774f
committed
refactor(gpu-fitness): remove redundant is_available() call in fallback
Eliminate unnecessary nvidia-smi call in _run_gpu_test_fallback(). The function
was calling is_available() before immediately trying nvidia-smi --list-gpus,
resulting in redundant GPU detection. Direct attempt to list GPUs handles all
failure cases without the pre-check.
Also clean up ambiguous variable name 'l' → 'line' in list comprehension.1 parent 766807b commit 7a6774f
1 file changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 189 | + | |
199 | 190 | | |
200 | 191 | | |
201 | 192 | | |
| |||
207 | 198 | | |
208 | 199 | | |
209 | 200 | | |
210 | | - | |
| 201 | + | |
211 | 202 | | |
212 | 203 | | |
213 | 204 | | |
| |||
0 commit comments