Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set new LLVM atomic optimizer strategy option #2506

Merged
merged 1 commit into from Jun 12, 2023

Conversation

jayfoad
Copy link
Member

@jayfoad jayfoad commented Jun 9, 2023

See: https://reviews.llvm.org/D147408#4394537
The LLVM AMDGPU atomic optimizer pass has a new command line option -amdgpu-atomic-optimizer-strategy= which currently defaults to DPP, but the plan is to change the default to Iterative. Set it to DPP explicitly so that LLPC will not be affected by that change.

@jayfoad jayfoad requested a review from a team as a code owner June 9, 2023 09:05
@amdvlk-admin
Copy link
Collaborator

Test summary for commit 736b360

CTS tests (Failed: 0/141320)
  • Built with version 1.3.3.1
  • Ubuntu 22.04, Navi3x
    • Passed: 40065/70667 (56.7%)
    • Failed: 0/70667 (0.0%)
    • Not Supported: 30602/70667 (43.3%)
    • Warnings: 0/70667 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40106/70653 (56.8%)
    • Failed: 0/70653 (0.0%)
    • Not Supported: 30547/70653 (43.2%)
    • Warnings: 0/70653 (0.0%)
    Rhel 8.6, Gfx10
    • Timeout or crash

See: https://reviews.llvm.org/D147408#4394537
The LLVM AMDGPU atomic optimizer pass has a new command line option
-amdgpu-atomic-optimizer-strategy= which currently defaults to DPP, but
the plan is to change the default to Iterative. Set it to DPP explicitly
so that LLPC will not be affected by that change.
@amdvlk-admin
Copy link
Collaborator

Test summary for commit 736b360

CTS tests (Failed: 0/141320)
  • Built with version 1.3.3.1
  • Ubuntu 22.04, Navi3x
    • Passed: 40065/70667 (56.7%)
    • Failed: 0/70667 (0.0%)
    • Not Supported: 30602/70667 (43.3%)
    • Warnings: 0/70667 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40106/70653 (56.8%)
    • Failed: 0/70653 (0.0%)
    • Not Supported: 30547/70653 (43.2%)
    • Warnings: 0/70653 (0.0%)

@amdvlk-admin
Copy link
Collaborator

Test summary for commit c0bd803

CTS tests (Failed: 0/141320)
  • Built with version 1.3.3.1
  • Ubuntu 22.04, Navi3x
    • Passed: 40065/70667 (56.7%)
    • Failed: 0/70667 (0.0%)
    • Not Supported: 30602/70667 (43.3%)
    • Warnings: 0/70667 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40106/70653 (56.8%)
    • Failed: 0/70653 (0.0%)
    • Not Supported: 30547/70653 (43.2%)
    • Warnings: 0/70653 (0.0%)
    Rhel 8.6, Gfx10
    • Timeout or crash

@GPUOpen-Drivers GPUOpen-Drivers deleted a comment from amdvlk-admin Jun 9, 2023
@amdvlk-admin
Copy link
Collaborator

Test summary for commit c0bd803

CTS tests (Failed: 0/141320)
  • Built with version 1.3.3.1
  • Ubuntu 22.04, Navi3x
    • Passed: 40065/70667 (56.7%)
    • Failed: 0/70667 (0.0%)
    • Not Supported: 30602/70667 (43.3%)
    • Warnings: 0/70667 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 40106/70653 (56.8%)
    • Failed: 0/70653 (0.0%)
    • Not Supported: 30547/70653 (43.2%)
    • Warnings: 0/70653 (0.0%)

Copy link
Member

@amdrexu amdrexu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's very great LLVM could have more flexible options to control atomic optimizer.

Copy link
Member

@nhaehnle nhaehnle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More cl::opts :(

But yeah, sure.

@jayfoad jayfoad merged commit 33cb8e3 into GPUOpen-Drivers:dev Jun 12, 2023
10 checks passed
pravinjagtap pushed a commit to llvm/llvm-project that referenced this pull request Jun 15, 2023
The D147408 implemented new Iterative approach for scan computations
and  added new flag `amdgpu-atomic-optimizer-strategy` which is
defaulted to DPP.

The changeset GPUOpen-Drivers/llpc#2506
adapts to the new changes in LLPC.

This patch enables atomic optimizer pass and selects Iterative
approach for scan computations by default for compute pipeline.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D152649
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Oct 13, 2023
The D147408 implemented new Iterative approach for scan computations
and  added new flag `amdgpu-atomic-optimizer-strategy` which is
defaulted to DPP.

The changeset GPUOpen-Drivers/llpc#2506
adapts to the new changes in LLPC.

This patch enables atomic optimizer pass and selects Iterative
approach for scan computations by default for compute pipeline.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D152649

Change-Id: I92916327d76535d7a4a0fa347442196732cd0237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants