Ricks-Lab / gpu-utils

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

Support for MacOS-X ? #146

Open ka0s opened 9 months ago

ka0s commented 9 months ago

I think this is a great tool and I would love to see it working on Mac. Using the 'pip3 install rickslab-gpu-utils' works just fine and installs all dependencies.

However when trying the gpu-ls command in a new window I get the following Error: Error: Invalid pciid path OS command [lsb_release] executable not found. Error: OS command [lspci] executable not found. Error in environment. Exiting...

After having installed clinfo and dpkg I tried gpu-chk with the following output:

Using rickslab-gpu-utils 3.8.2 Using python 3.11.6 Python version OK. Using Linux Kernel: 21.6.0 OS kernel OK. System type has not been verified. Using Linux distribution: unknown [lsb_release] executable not found. amdgpu/rocm version: UNKNOWN rickslab-gpu-utils can still be used. {'python': True, 'kernel': True, 'system': False, 'distribution': True, 'driver': True} Error in environment. Exiting...

I also installed the python vext and vext.gi modules but still no luck so far. My system has a Radeon VII.

If you think that getting the gpu-utils to work on OS-X (depending on hardware of course ) is a possibility I would be happy to beta test.

Regards, Bob

ka0s commented 9 months ago

I see now that one of the dependencies is lsb_release ( Linux only ) Guess it would probably take some in-depth coding to bypass lsb_release for another OS-X based framework functionality.

Ricks-Lab commented 9 months ago

lspci is critical in the way gpu-utils interacts with GPUs. Also, open source drivers are needed. Probably won't be a priority for me to support non-opensource platforms.