ROCm / HIP

HIP: C++ Heterogeneous-Compute Interface for Portability
https://rocmdocs.amd.com/projects/HIP/
MIT License
3.77k stars 539 forks source link

Add multi device management #3664

Closed matyas-streamhpc closed 13 hours ago

g-h-c commented 17 hours ago

The device enumeration section is perhaps slightly imprecise when it comes to systems that have both AMD and Nvidia GPUs, because the HIP runtime cannot see both at the same time, yet the page says: "The host queries the system to count and list all connected GPUs," A binary using HIP compiled with HIP_PLATFORM=amd will only see amd devices, and with HIP_PLATFORM=nvidia only Nvidia; or at least that is what I experience when I run it on my hybrid system.

matyas-streamhpc commented 15 hours ago

The device enumeration section is perhaps slightly imprecise when it comes to systems that have both AMD and Nvidia GPUs, because the HIP runtime cannot see both at the same time, yet the page says: "The host queries the system to count and list all connected GPUs," A binary using HIP compiled with HIP_PLATFORM=amd will only see amd devices, and with HIP_PLATFORM=nvidia only Nvidia; or at least that is what I experience when I run it on my hybrid system.

Thank you, it's a nice catch! Updated.