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

UUID support on Windows #39

Open
amoiseev opened this issue Apr 21, 2023 · 3 comments
Open

UUID support on Windows #39

amoiseev opened this issue Apr 21, 2023 · 3 comments

Comments

@amoiseev
Copy link

Are there some ready-made, but maybe undocumented functions to get AMD video card's UUID (aka unique_id in Linux sysfs)?
Some newer AMD GPUs seem to support it.

Here the issue is being discussed in ROCm repo:
ROCm/ROCm#310

And here is some implementation code in the Linux kernel driver:
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c#L509

@sylveon
Copy link

sylveon commented Jul 31, 2023

If you want something to uniquely identify a device within a session, you can use DXGI's adapter LUID.

@amoiseev
Copy link
Author

amoiseev commented Aug 2, 2023

@sylveon Yes, this library also offers some temporarily unique IDs.

But for some applications to e.g. preserve overclocking settings custom to this particular physical video card, across reboots, and cards moved to different slots — still actual hardware UUID/serial would be best enable these.

@Convery
Copy link

Convery commented Aug 8, 2023

The AMD consumer cards store their UUID in physical memory (MMIO), so on Windows you'd need a driver to access it. Not to mention that it's architecture dependant, on some it's a simple read of the registers while others (e.g. Vega as in the link) uses SMU to query the EFuse configuration.

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