Comments (6)
@janroden I've pushed a new commit with the above fix.
from gputil.
I still get this error, should I uninstall and reinstall? BTW love your work
from gputil.
@anderskm I don't see the fix in the pip installed version.
from gputil.
ah, seems to be a Python 2 vs 3 issue:
https://stackoverflow.com/questions/4987327/how-do-i-check-if-a-string-is-unicode-or-ascii
from gputil.
@janroden Thank you for pointing out the issue.
Before uploading, I always run the demo script in both a python 2 and python 3 environment, but I have not encountered the error before.
You can try a quick fix by replacing
[...]
elif (isinstance(attr,unicode)):
with
import sys
[...]
elif (sys.version_info[0] == 2):
if (isinstance(attr,unicode)):
Note, that there are two checks for unicode in the code.
I suspect, that you might get a new "unhandled object type" error, after fixing this one.
If a new error arises, could you also post your raw output from calling nvidia-smi
using the following commend?
nvidia-smi --query-gpu=index,uuid,utilization.gpu,memory.total,memory.used,memory.free,driver_version,name,gpu_serial,display_active,display_mode --format=csv,noheader,nounits
It's the same command, which GPUtil
uses to get the GPU information.
from gputil.
@JaeDukSeo and @hanhu I'm sorry, I've been a bit slow to push the latest fixes to pip.
I have just tagged the latest commit for release and uploaded it to pip.
The newest version is now v1.4.0
You can update your current version using:
pip uninstall GPUtil
pip install GPUtil
I hope this fixes your issues. Otherwise, please let me know.
I will close this issue now. If the problem still remains, feel free to comment on this issue, and I will reopen it.
from gputil.
Related Issues (20)
- Crashing if nvidia-smi fails HOT 3
- GPUtil.showUtilization does not work for individual attrList HOT 3
- ImportError: No module named GPUtil HOT 4
- getFirstAvailable(maxMemory=0.9) inconsistent with showUtilization() HOT 1
- Get GPUs that are not used by any other user
- GPU memoryUsage per Process
- Is it possible to get the CUDA version? HOT 1
- Add Kubernetes support through device plugins
- Unable to find GPU on Windows HOT 11
- Request: Add all query information from nvidia-smi
- ValueError when nvidia-smi finds no GPU
- Over 60 times slower than nvidia-smi to asses resource usage
- GPUtil doesn't find GPU HOT 1
- showUtilization causes GPU stuttering
- ValueError: invalid literal for int() with base 10: 'No devices were found' HOT 1
- Drop dependency on distutils to support python 3.12 HOT 1
- Pyinstaller exe with console=False causes pop-up window every time nvidia-smi.exe is called HOT 1
- Very new to all of this, please help? HOT 1
- No longer works on Python 3.12 as distutils has been deprecated and removed HOT 2
- Handle nvidia-smi non-zero exit status
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 gputil.