Skip to content

[GPU] Support specifying LLVMGPU backend target features - #17451

Merged
antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:llvmgpu-features
May 21, 2024
Merged

antiagainst merged 3 commits into
iree-org:mainfrom
antiagainst:llvmgpu-features

Conversation

@antiagainst

@antiagainst antiagainst commented May 21, 2024 •

Copy link
Copy Markdown
Member

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 #17402
Progress towards #16341

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 antiagainst added the codegen/rocm ROCm code generation compiler backend (HIP/HSA) label May 21, 2024
@antiagainst
antiagainst requested a review from kuhar May 21, 2024 14:49
@antiagainst
antiagainst merged commit 006af5d into iree-org:main May 21, 2024
@antiagainst
antiagainst deleted the llvmgpu-features branch May 21, 2024 16:38
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
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codegen/rocm ROCm code generation compiler backend (HIP/HSA)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rocm] iree-rocm-target-chip should take entire GCN arch name when available

3 participants