[llvm] [OFFLOAD] Add olIterateCompatibleDevices API (PR #226441)

Alex Duran via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 12:53:02 PDT 2026


adurang wrote:

> Do we need this? I figured we could just export an 'iterateDevices' and a `isDeviceCompatbile` and leave the uesr to do it.

Yes, because otherwise you would init all Platftorms while doing iterateDevices. This first checks if a Platform is compatible, and only then initializes it, and traverses its devices (checking also if they're compatible).

https://github.com/llvm/llvm-project/pull/226441


More information about the llvm-commits mailing list