Skip to content

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
@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.

3 participants