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

llpc: Fix non-determinism in SpirvLowerRayQuery #2811

Merged

Conversation

jasilvanus
Copy link
Contributor

In SpirvLowerRayQuery, we generate a unique id for each traceRay call. This id is generated by hasing an increasing ID number, and the name of the module.

However, the implementation was instead hashing the binary representation of a StringRef object, thereby hashing a pointer.

This resulted in non-deterministic IR being generated.

In SpirvLowerRayQuery, we generate a unique id for each traceRay call.
This id is generated by hasing an increasing ID number, and the name
of the module.

However, the implementation was instead hashing the binary representation
of a StringRef object, thereby hashing a pointer.

This resulted in non-deterministic IR being generated.
@jasilvanus jasilvanus requested a review from a team as a code owner November 9, 2023 16:43
@amdvlk-admin
Copy link

Test summary for commit bf16fd7

CTS tests (Failed: 0/138362)
  • Built with version 1.3.5.2
  • Ubuntu navi3x, Srdcvk
    • Passed: 35162/69147 (50.9%)
    • Failed: 0/69147 (0.0%)
    • Not Supported: 33985/69147 (49.1%)
    • Warnings: 0/69147 (0.0%)
    Ubuntu navi2x, Srdcvk
    • Passed: 35242/69215 (50.9%)
    • Failed: 0/69215 (0.0%)
    • Not Supported: 33973/69215 (49.1%)
    • Warnings: 0/69215 (0.0%)

Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

Thanks!

@jasilvanus jasilvanus merged commit 86ca151 into GPUOpen-Drivers:dev Nov 10, 2023
@jasilvanus jasilvanus deleted the jsilvanu/fix-nondeterminism branch November 10, 2023 13:55
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.

3 participants