Comments (2)
Fixed with latest bindings.
if (sys.platform[:3] == "win"):
# cdecl calling convention
try:
# Check for nvml.dll in System32 first for DCH drivers
nvmlLib = CDLL(os.path.join(os.getenv("WINDIR", "C:/Windows"), "System32/nvml.dll"))
except OSError as ose:
# If nvml.dll is not found in System32, it should be in ProgramFiles
# load nvml.dll from %ProgramFiles%/NVIDIA Corporation/NVSMI/nvml.dll
nvmlLib = CDLL( os.path.join(os.getenv("ProgramFiles", "C:/Program Files"), "NVIDIA Corporation/NVSMI/nvml.dll"))
else:
# assume linux
nvmlLib = CDLL("libnvidia-ml.so.1")
from pynvml.
Thanks for raising this @skywalkerisnull (and sorry for the delay). The NVML bindings are out of date, but I am starting to update them in #32 - Hopefully that PR will resolve this issue.
from pynvml.
Related Issues (20)
- Uninitialized Error HOT 2
- NVLINK Ask HOT 10
- NVML Permissions HOT 2
- Get gpu usage by pid HOT 4
- [pytest] test_nvmlSystemGetDriverVersion() and test_nvmlSystemGetNVMLVersion() fails HOT 3
- [pytest] nvlink related tests fail on a machine without nvlink HOT 1
- Support for WSL (Windows Subsystem for Linux) HOT 6
- How to get the maximally used GPU memory during a period? HOT 3
- adding support for CUDA_VISIBLE_DEVICES which is currently ignored HOT 5
- possibly integrating pynvx for Darwin as a substitute HOT 3
- MIG Support HOT 10
- How to get the process pid in docker? HOT 1
- When failing on NVMLError exception, bug in handling HOT 5
- virtual GPU has brand number =10 which is not on the list HOT 4
- Readme.md import example HOT 2
- Wrong exn for wsl
- undefined symbol: nvmlDeviceGetComputeRunningProcesses_v2 HOT 1
- Higher-level application HOT 5
- AttributeError: module 'pynvml' has no attribute '_nvmlGetFunctionPointer' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pynvml.