Skip to content

Commit b5fdd67

Browse files
authored
Merge pull request #215 from jakirkham/use_pynvml_12
2 parents d9746ae + eb3ae7d commit b5fdd67

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

conda/environments/all_arch-any.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- nodejs=18
1111
- pre-commit
1212
- psutil
13-
- pynvml>=11.0.0,<12.0.0a0
13+
- pynvml>=12.0.0,<13.0.0a0
1414
- pytest
1515
- pytest-asyncio
1616
- pytest-jupyter[server]>=0.6.0

conda/recipes/jupyterlab-nvdashboard/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ requirements:
2626
run:
2727
- python >=3.8
2828
- jupyterlab >=4
29-
- pynvml >=11.0.0,<12.0.0a0
29+
- pynvml >=12.0.0,<13.0.0a0
3030
- psutil
3131

3232

dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dependencies:
7272
- output_types: [conda, requirements, pyproject]
7373
packages:
7474
- jupyterlab>=4
75-
- pynvml>=11.0.0,<12.0.0a0
75+
- pynvml>=12.0.0,<13.0.0a0
7676
- psutil
7777
test_python:
7878
common:

jupyterlab_nvdashboard/apps/gpu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
try:
77
pynvml.nvmlInit()
8-
except pynvml.nvml.NVMLError_LibraryNotFound:
8+
except pynvml.NVMLError_LibraryNotFound:
99
ngpus = 0
1010
gpu_handles = []
1111
else:
@@ -29,12 +29,12 @@
2929
max(sum(i.value.ullVal for i in bw) * 1024**2 for bw in bandwidth)
3030
/ 2
3131
)
32-
except (IndexError, pynvml.nvml.NVMLError_NotSupported):
32+
except (IndexError, pynvml.NVMLError_NotSupported):
3333
nvlink_ver = None
3434
max_bw = []
3535
try:
3636
pci_gen = pynvml.nvmlDeviceGetMaxPcieLinkGeneration(gpu_handles[0])
37-
except (IndexError, pynvml.nvml.NVMLError_NotSupported):
37+
except (IndexError, pynvml.NVMLError_NotSupported):
3838
pci_gen = None
3939

4040

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ classifiers = [
3131
dependencies = [
3232
"jupyterlab>=4",
3333
"psutil",
34-
"pynvml>=11.0.0,<12.0.0a0",
34+
"pynvml>=12.0.0,<13.0.0a0",
3535
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
3636
dynamic = ["version", "description", "authors", "urls", "keywords"]
3737

0 commit comments

Comments
 (0)