[llvm] [SYCL] Add sycl::device initial implementation (PR #176972)
Kseniya Tikhomirova via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 09:22:03 PST 2026
================
@@ -31,8 +30,8 @@ template <class T> struct range_view {
size_t size() const { return len; }
};
-using PlatformWithDevStorageType =
- std::unordered_map<ol_platform_handle_t, std::vector<ol_device_handle_t>>;
+using Platform2DevContainer =
+ std::vector<std::pair<ol_platform_handle_t, ol_device_handle_t>>;
----------------
KseniyaTikhomirova wrote:
I realized that it is not correct to use map here since rehash may cause change of device order. I have redone this and corresponding code.
https://github.com/llvm/llvm-project/pull/176972
More information about the llvm-commits
mailing list