Skip to content

Commit 1119a63

Browse files
Merge pull request #2620 from devitocodes/gpu-detect-empty
arch: fix json erro with no card
2 parents 512d7f3 + de655df commit 1119a63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/arch/archinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def cbk(deviceid=0):
328328

329329
return gpu_info
330330

331-
except OSError:
331+
except (json.JSONDecodeError, OSError):
332332
pass
333333

334334
# *** Third try: `sycl-ls`, clearly only works with Intel cards

0 commit comments

Comments
 (0)