[llvm] [offload][l0] Implement context groups and add actual L0 driver version to info (PR #217562)

Jan Trusiłło via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 02:02:29 PDT 2026


================
@@ -96,7 +73,15 @@ void discoverOffloadDevices() {
         if (OlBackend >= OL_PLATFORM_BACKEND_LAST)
           return true;
 
-        (*Data)[static_cast<size_t>(OlBackend)].push_back({Platform, Dev});
+        uint32_t ContextGroupIndex = 0;
+        Res = callNoCheck(olGetDeviceInfo, Dev,
+                          OL_DEVICE_INFO_CONTEXT_GROUP_INDEX,
+                          sizeof(ContextGroupIndex), &ContextGroupIndex);
+        if (Res != OL_SUCCESS)
+          ContextGroupIndex = 0;
+
+        (*Data)[static_cast<size_t>(OlBackend)].push_back(
+            {Platform, Dev, ContextGroupIndex});
----------------
311Volt wrote:

Sure, changed

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


More information about the llvm-commits mailing list