Repository navigation
[GPU] Support specifying LLVMGPU backend target features - #17451
Merged
Merged
Conversation
This commit adds a new `features` field to the `#iree_gpu.target` to allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIP `gfx942`. The new features can be specified via the `--iree-rocm-target-features` command-line option. Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all `gfx9*` targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we have > If not specified for code object V4 or above, generate code > that can be loaded and executed in a process with either > setting of SRAMECC (XNACK replay). So that means it should be fine to be missing by default.
antiagainst
requested review from
MaheshRavishankar,
kuhar and
qedawkins
as code owners
May 21, 2024 06:52
qedawkins
approved these changes
May 21, 2024
kuhar
reviewed
May 21, 2024
kuhar
approved these changes
May 21, 2024
gglangg
pushed a commit
to gglangg/iree
that referenced
this pull request
Jun 4, 2024
) This commit adds a new `features` field to the `#iree_gpu.target` to allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIP `gfx942`. The new features can be specified via the `--iree-rocm-target-features` command-line option. Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all `gfx9*` targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we have > If not specified for code object V4 or above, generate code > that can be loaded and executed in a process with either > setting of SRAMECC (XNACK replay). So that means it should be fine to be missing by default. Fixes iree-org#17402 Progress towards iree-org#16341
gglangg
pushed a commit
to gglangg/iree
that referenced
this pull request
Jun 4, 2024
) This commit adds a new `features` field to the `#iree_gpu.target` to allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIP `gfx942`. The new features can be specified via the `--iree-rocm-target-features` command-line option. Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all `gfx9*` targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we have > If not specified for code object V4 or above, generate code > that can be loaded and executed in a process with either > setting of SRAMECC (XNACK replay). So that means it should be fine to be missing by default. Fixes iree-org#17402 Progress towards iree-org#16341
bangtianliu
pushed a commit
to bangtianliu/iree
that referenced
this pull request
Jun 5, 2024
) This commit adds a new `features` field to the `#iree_gpu.target` to allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIP `gfx942`. The new features can be specified via the `--iree-rocm-target-features` command-line option. Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all `gfx9*` targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we have > If not specified for code object V4 or above, generate code > that can be loaded and executed in a process with either > setting of SRAMECC (XNACK replay). So that means it should be fine to be missing by default. Fixes iree-org#17402 Progress towards iree-org#16341
7 of 21 tasks
LLITCHEV
pushed a commit
to LLITCHEV/iree
that referenced
this pull request
Jul 30, 2024
) This commit adds a new `features` field to the `#iree_gpu.target` to allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIP `gfx942`. The new features can be specified via the `--iree-rocm-target-features` command-line option. Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all `gfx9*` targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we have > If not specified for code object V4 or above, generate code > that can be loaded and executed in a process with either > setting of SRAMECC (XNACK replay). So that means it should be fine to be missing by default. Fixes iree-org#17402 Progress towards iree-org#16341 Signed-off-by: Lubo Litchev <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds a new
featuresfield to the#iree_gpu.targetto allow specifying additional LLVMGPU backend target features, e.g., "+sramecc,+xnack" for HIPgfx942. The new features can be specified via the--iree-rocm-target-featurescommand-line option.Along the way, dropped the hardcoded "+sramecc,-xnack" feature set for all
gfx9*targets--for both of them, from the AMDGPU doc (https://llvm.org/docs/AMDGPUUsage.html), we haveSo that means it should be fine to be missing by default.
Fixes #17402
Progress towards #16341