[llvm] [AMDGPU] Add a trap lowering workaround for gfx11 (PR #85854)

Scott Linder via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 12:04:57 PDT 2024


================
@@ -443,6 +443,8 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
     return isAmdHsaOS() ? TrapHandlerAbi::AMDHSA : TrapHandlerAbi::NONE;
   }
 
+  bool requiresSimulatedTrap() const { return getGeneration() == GFX11; }
----------------
slinder1 wrote:

I'm not sure this is precise enough, see https://lists.freedesktop.org/archives/amd-gfx/2023-July/095828.html where kfd narrowed the workaround to only apply up to a minor HW version

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


More information about the llvm-commits mailing list