nicolargo / nvidia-ml-py3 Goto Github PK
View Code? Open in Web Editor NEWPython 3 Bindings for the NVIDIA Management Library
Python 3 Bindings for the NVIDIA Management Library
First up, thanks for this extremely useful Lib.
I was wondering if it would be possible to push the latest version with the check into System32 for Windows users to PyPi?
It seems that Windows is increasingly installing Nvidia drivers this way, and it would be extremely useful to be able to pull this functionality in with Pip.
Many thanks, and keep up the good work!
I apologize for mis-using this github issue tracker @nicolargo . I wanted to have a public discussion on GitHub about Pythonic GPU diagnostic libraries and yours was the most relevant issue tracker that I found. I'm happy to move conversation elsewhere if desired. Also, thank you for porting this library to current Python.
That being said, this library has lots of functionality, but isn't particularly friendly for a typical Python user. It appears to be a faithful port of a C library both for good and bad.
Is there value to designing a new library that wrapped around this one and provided the same diagnostics but in a different way? If so, what thoughts do people have about API for that library?
cc @sklam @seibert @ogrisel @lesteve @beberg (please also ping others)
Thank you for providing this library.
I'm posting this in hopes that it will help someone who may have the same problem as I did.
When trying to print a class inherited from _PrintableStructure
such as c_nvmlProcessInfo_t()
using print(c_nvmlProcessInfo_t())
, the following AttributeError occurred.
AttributeError: module 'string' has no attribute 'join'
This is because string.join()
has been removed in python3.
The problem was solved by changing the value returned from __str__
of the _PrintableStructure
class in pynvml.py as follows.
Original:
return self.__class__.__name__ + "(" + string.join(result, ", ") + ")"
Modified:
return self.__class__.__name__ + "(" + ", ".join(result) + ")"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.