Skip to content
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

[Issue]: different/inconsistent python interfaces #11

Closed
IlyasMoutawwakil opened this issue Feb 13, 2024 · 2 comments
Closed

[Issue]: different/inconsistent python interfaces #11

IlyasMoutawwakil opened this issue Feb 13, 2024 · 2 comments
Assignees

Comments

@IlyasMoutawwakil
Copy link

Problem Description

The python interface functions are different depending on rocm version, is there a reason they're not updated for all rocm versions ?
rocm5.7: devices_handles = amdsmi.amdsmi_get_processor_handles()
rocm5.6: devices_handles = amdsmi.amdsmi_get_device_handles()

my problem is that I have to do things like this to support each version of rocm 😅
https://github.com/huggingface/optimum-benchmark/blob/main/optimum_benchmark/launchers/isolation_utils.py#L65-L111

Operating System

Ubuntu 22.04

CPU

AMD Epyc

GPU

AMD Instinct MI250

ROCm Version

ROCm 5.7.0, ROCm 5.6.0

ROCm Component

amdsmi

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@marifamd marifamd self-assigned this Mar 5, 2024
@marifamd
Copy link
Collaborator

marifamd commented Mar 5, 2024

Hi @IlyasMoutawwakil thank you for reaching out. You are correct, we did change this because amd-smi will be able to handle all amd processors (GPUs & CPUs) in the future.

amd-smi is still a realtively new project and I'm excited to see developers use the python library that we developed. FYI we are aware of the bugs in the amdsmi_get_gpu_process_list & amdsmi_get_gpu_process_info functions as we are redesigning it.

@harkgill-amd
Copy link
Contributor

Hi @IlyasMoutawwakil, thank you again for reaching out with your concerns. Following up on @marifamd's reply, it looks like the function has not changed from amdsmi_get_processor_handles() since ROCm 5.7. As a result, I will close out this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants