-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for AMD ROCm devices #123
Conversation
Hi @Junyi-99, thanks for the contribution! Is there any PyPI package that provides the ROCm-SMI bindings like pip3 install nvitop[rocm] |
Oh, I think it's a very good suggestion to ship through |
4e67ba0
to
6bc8a8b
Compare
+1 I'd love to have this support, how is the development going? |
+1 It would be great to have this for MI300X |
trying this now with hf autotrain, AMD Radeon 7900XT Navi31 gfx1100 with I still receive the errors: Your installed package `nvidia-ml-py` is corrupted. Skip patch functions `nvmlDeviceGet{Compute,Graphics,MPSCompute}RunningProcesses`. You may get incorrect or incomplete results. Please consider reinstall package `nvidia-ml-py` via `pip3 install --force-reinstall nvidia-ml-py nvitop`.
Your installed package `nvidia-ml-py` is corrupted. Skip patch functions `nvmlDeviceGetMemoryInfo`. You may get incorrect or incomplete results. Please consider reinstall package `nvidia-ml-py` via `pip3 install --force-reinstall nvidia-ml-py nvitop`. |
@Junyi-99 Would it be possible to use the rocmsmi repo as a submodule instead? Also please note that we're working on migration to AMDSMI and it would be much better long-term to use that :). In fact RDC migrated to amdsmi somewhat recently. Cheers! |
@XuehaiPan This is planned for amdsmi :) |
some more info.
# if on ubuntu get dependencies:
# sudo apt install git python3 python3-pip cmake clang build-essential pkg-config libdrm-dev
git clone https://github.com/ROCm/amdsmi &&
cd amdsmi &&
cmake -B build &&
make -C build -j $(nproc) &&
cd build/py-interface/python_package &&
python3 -m pip install . Now you should be able to use the api: https://github.com/ROCm/amdsmi/tree/amd-staging/py-interface#usage
|
this works for wsl2?
|
@unclemusclez AFAIK - no. |
@dmitrii-galantsev I'll try it this weekend. |
hello - what happened to this PR? I would really like to have nvitop on AMD |
Issue Type
Description
I've implemented ROCm support in nvitop, enabling it to run on AMD GPUs. This feature has been tested on mi50, mi100, and mi210 machines and is confirmed to maintain full functionality for NVIDIA GPUs.
Motivation and Context
Really need nvitop on AMD GPUs.
#74
Testing
Tested on
mi50
mi100
mi210
Images / Videos
(top:
nvitop
, bottom-left:rocm-smi
, bottom-right:pytorch code
)