[llvm] [Offload][AMDGPU] Fix RPC server on mixed w32 w64 workloads (PR #185496)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 12:48:47 PDT 2026


================
@@ -503,6 +503,16 @@ struct AMDGPUDeviceImageTy : public DeviceImageTy {
     return It->second;
   }
 
+  /// Return the maximum wavefront size across all known kernels in this image.
+  uint32_t getMaxWavefrontSize() const {
+    uint32_t Max = 0;
+    for (const auto &[Name, Info] : KernelInfoMap)
+      if (Info.WavefrontSize !=
+          offloading::amdgpu::AMDGPUKernelMetaData::KInvalidValue)
----------------
arsenm wrote:

Why does this need the KInvalidValue check? I'd expect that to be uint_max or 0, either of which seems like a fine answer 

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


More information about the llvm-commits mailing list