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

[Documentation]: Examples of hipDeviceProp_t::major value for different GPUs #3853

Closed
nazar-pc opened this issue Oct 2, 2024 · 4 comments
Closed

Comments

@nazar-pc
Copy link

nazar-pc commented Oct 2, 2024

Description of errors

I was trying to find what values of hipDeviceProp_t::major correspond to what GPU and wasn't able to find it.
There are also seemingly no official CLI tools that print it, the only option is to own the GPU and write a piece of code myself.

I also tried to find in the source code and didn't succeed so far.

Would be great to have it described somewhere.

Attach any links, screenshots, or additional evidence you think will be helpful.

No response

@harkgill-amd
Copy link
Contributor

Hi @nazar-pc, hipDeviceProp_t::major and hipDeviceProp_t::minor reference the GPUs architecture. The system requirements page has a table which you can use to decode which architecture a GPU corresponds with. For example

An AMD Radeon RX 7900 XTX which is gfx1100 will have a major value of 11 and a minor value of 0.
An AMD Instinct MI100 which is gfx908 will have a major value of 9 and a minor value of 0.

@nazar-pc
Copy link
Author

nazar-pc commented Oct 2, 2024

Interesting, that makes a lot of sense to me, but wasn't obvious at all. Would be great to improve documentation in that respect.

Thanks for quick response!

@harkgill-amd
Copy link
Contributor

No problem! I agree that the documentation could use some additions in regards to compute capability. I will reach out to the docs team and confirm how we want to go about adding it in.

@harkgill-amd
Copy link
Contributor

#4350 and ROCm/hip#3721 have been merged. Both changes provide more context as to what the values represent and the expected output as well.

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

No branches or pull requests

2 participants