commit | 8d63c9fc0640f6e946d51a347fb2ee5f331b9cea | [log] [tgz] |
---|---|---|
author | Matthew Poremba <matthew.poremba@amd.com> | Wed Nov 02 14:58:29 2022 -0700 |
committer | Matthew Poremba <matthew.poremba@amd.com> | Tue Nov 08 21:34:11 2022 +0000 |
tree | c5d5ded645ed02960a19cd24cf049dc38eb3424f | |
parent | f6dc5c6aa496344b4fa1486d793f77a4c4150c8e [diff] |
gpu-compute: Add granulated SGPR computation for gfx9 The granulated SGPR size is used when the number of SGPRs is unknown. The computation for this has changed since gfx8 and is commented as a TODO in a comment. This changeset implements the change and also checks for an invalid SGPR count. According to LLVM code this could happen "due to a compiler bug or when using inline asm.": https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/AMDGPU/ AMDGPUAsmPrinter.cpp#L723 Change-Id: Ie487a53940b323a0002341075e0f81af4147a7d8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/65252 Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>