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

Add get-rocm-devices for AMD GPUs #544

Merged
merged 3 commits into from
Nov 19, 2024
Merged

Conversation

Henryfzh
Copy link
Contributor

The command to run the script is:

cm run script --tags=get,rocm-devices

The script first check if hip-python is installed, if not install it from https://test.pypi.org/simple.
After finishing run the script will write to file tmp-run.out and print the properties of the GPUs to the terminal like this:

GPU 0:
GPU Device ID: 0000:e3:00.0
GPU Name: 0
GPU compute capability: 9.0
ROCM driver version: 60241134
ROCM runtime version: 60241134
Global memory (GiB): 63.984375
Max clock rate: 1700.0 MHz
Total amount of shared memory per block (Bytes): 65536
Total number of registers available per block: 65536
Warp size: 64
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block X: 1024
Max dimension size of a thread block Y: 1024
Max dimension size of a thread block Z: 1024
Max dimension size of a grid size X: 2147483647
Max dimension size of a grid size Y: 65536
Max dimension size of a grid size Z: 65536
GPU 1:
GPU Device ID: 0000:c3:00.0
GPU Name: 1
GPU compute capability: 9.0
ROCM driver version: 60241134
ROCM runtime version: 60241134
Global memory (GiB): 63.984375
Max clock rate: 1700.0 MHz
Total amount of shared memory per block (Bytes): 65536
Total number of registers available per block: 65536
Warp size: 64
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block X: 1024
Max dimension size of a thread block Y: 1024
Max dimension size of a thread block Z: 1024
Max dimension size of a grid size X: 2147483647
Max dimension size of a grid size Y: 65536
Max dimension size of a grid size Z: 65536

@Henryfzh Henryfzh requested a review from a team as a code owner November 14, 2024 18:02
Copy link

github-actions bot commented Nov 14, 2024

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

CM_DETECT_USING_PYCUDA: 'no'

new_env_keys:
- CM_CUDA_DEVICE_*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of CUDA it must be ROCM right? This is the prefix for the ENV keys which are to be exported by this CM script. Same for the state.

Copy link
Contributor

@arjunsuresh arjunsuresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR

@arjunsuresh arjunsuresh merged commit b042382 into mlcommons:main Nov 19, 2024
64 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants