Skip to content

Commit

Permalink
Update python/dask_cudf/dask_cudf/io/parquet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora authored Nov 19, 2024
1 parent 0ecf6dd commit fa03396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dask_cudf/dask_cudf/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _get_device_size():

pynvml.nvmlInit()
index = os.environ.get("CUDA_VISIBLE_DEVICES", "0").split(",")[0]
if not index.isnumeric():
if index and not index.isnumeric():
# This means index is UUID. This works for both MIG and non-MIG device UUIDs.
handle = pynvml.nvmlDeviceGetHandleByUUID(str.encode(index))
else:
Expand Down

0 comments on commit fa03396

Please sign in to comment.