Skip to content

Conversation

@kmorel
Copy link
Contributor

@kmorel kmorel commented Mar 18, 2025

The hip device collective for AbsMax does a reduction operation. The initial value was set to a literal int 0, which is wrong for floating types of arrays. This could cause wrong results or compile errors.

Fixes #241

The hip device collective for AbsMax does a reduction operation.
The initial value was set to a literal int 0, which is wrong for
floating types of arrays. This could cause wrong results or compile
errors.

Fixes CODARcode#241
@kmorel kmorel marked this pull request as draft March 18, 2025 14:43
@JieyangChen7
Copy link
Collaborator

@kmorel Thanks for discovering this issue! Can I merge this?

@kmorel kmorel marked this pull request as ready for review March 18, 2025 19:29
@kmorel
Copy link
Contributor Author

kmorel commented Mar 18, 2025

@JieyangChen7 Yes. I'm doing one last spack compile (which takes hours) to reverify everything is working as expected, but I'm confident enough for you to merge this in.

@kmorel
Copy link
Contributor Author

kmorel commented Mar 21, 2025

@JieyangChen7 FYI, I did my verification, and everything worked. This change is ready to be merged.

@JieyangChen7 JieyangChen7 merged commit 1156a0e into CODARcode:master Mar 21, 2025
3 of 11 checks passed
@kmorel kmorel deleted the hip-abs-reduce-type branch March 25, 2025 19:15
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.

Error compiling with HIP 6.3.1

2 participants