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

Fix HIP float intrinsics were mapped double built-ins #793

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

linehill
Copy link
Collaborator

@linehill linehill commented Mar 4, 2024

The use-compiler-builtins patch unintentionally redirected HIP single precision intrinsic calls to double precision compiler/OpenCL built-ins.

@pvelesko
Copy link
Collaborator

pvelesko commented Mar 8, 2024

Linter error + Question: So the opencl intrinsics are declared here, shouldn't the mappping also change? Or was the mapping done in the previous PR without declaration which would have resulted in compilation issues?

If it's the latter we need to adjust testing

Copy link
Collaborator

@pvelesko pvelesko left a comment

Choose a reason for hiding this comment

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

lint + question

The use-compiler-builtins patch removed OpenCL single-precision
built-in declarations, thought to be redundant, but this silently
broke HIP intrinsics which relied on them. HIP intrinsics that called
single-precision OpenCL built-ins previously, called double-precision
variants after the patch (perf. drop, especially on devices without
double support).

Fix by bringing the OpenCL single-precision built-in declarations
where they are needed.
@linehill
Copy link
Collaborator Author

linehill commented Mar 8, 2024

Lint fix.

So the opencl intrinsics are declared here, shouldn't the mappping also change? Or was the mapping done in the previous PR without declaration which would have resulted in compilation issues?

This patch brings the mapping to the state it was before #763 PR.

@pvelesko pvelesko merged commit d206d4d into main Mar 13, 2024
28 of 29 checks passed
@pvelesko pvelesko deleted the fix-intrs branch March 13, 2024 00:41
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.

2 participants