Ricks-Lab / gpu-utils

A set of utilities for monitoring and customizing GPU performance
GNU General Public License v3.0
136 stars 23 forks source link

ValueError when reading the feature mask #102

Closed tripledes closed 3 years ago

tripledes commented 3 years ago

Trying to run gpu-utils with the following environment:

I get the following error:

Traceback (most recent call last):                                                                                                                                                                                                                                                        
  File "/home/sjr/.pyenv/versions/gpu-utils/bin/gpu-ls", line 150, in <module>
    main()                                                        
  File "/home/sjr/.pyenv/versions/gpu-utils/bin/gpu-ls", line 98, in main
    gpu_list.set_gpu_list(clinfo_flag=True)                                                                                                  
  File "/home/sjr/.pyenv/versions/3.9.0/envs/gpu-utils/lib/python3.9/site-packages/GPUmodules/GPUmodule.py", line 1671, in set_gpu_list
    self.amd_featuremask = env.GUT_CONST.read_amdfeaturemask()                                                                               
  File "/home/sjr/.pyenv/versions/3.9.0/envs/gpu-utils/lib/python3.9/site-packages/GPUmodules/env.py", line 206, in read_amdfeaturemask
    self.amdfeaturemask = int(fm_file.readline())

I get the same error using the packaged version for Debian testing (bullseye).