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 bug in omatcopy_batch and omatadd_batch operators #476

Merged

Conversation

s-Nick
Copy link
Collaborator

@s-Nick s-Nick commented Oct 31, 2023

This PR addresses a bug in the current non-transpose implementation of omatcopy_batch and omatadd_batch operators.
It sets alpha and beta values as index_t type instead of value_t type. In case of value_t being a floating point type, it caused an implicit cast from floating point to integer type that lead to wrong computation.

Current non-transpose implementation has a bug in the type for alpha
scalar. This commit fix it.
Update test to properly check floating points values for alpha and beta.
@muhammad-tanvir-1211 muhammad-tanvir-1211 merged commit e0562e4 into codeplaysoftware:master Nov 6, 2023
3 checks passed
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