Skip to content

fix(rocBLAS) : rot and rot_ex fix ILP64 large N inc handling - #13114

Merged
TorreZuk merged 2 commits into
developfrom
users/torrezuk/airocblas-1397-rot-bug
Oct 8, 2026
Merged

TorreZuk merged 2 commits into
developfrom
users/torrezuk/airocblas-1397-rot-bug

Conversation

@TorreZuk

@TorreZuk TorreZuk commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Motivation

This pull request addresses the handling of negative increments in the 64-bit rot kernel launcher, ensuring that offsets are correctly computed when incx or incy are negative. Additionally, new stress test cases are added to verify this behavior.

Kernel Logic Fixes:

  • Updated the computation of shiftx and shifty in rocblas_internal_rot_launcher_64 (in rocblas_rot_kernels_64.cpp) to correctly handle negative increments by adjusting the offset calculation, ensuring the correct starting point for negative strides.

Testing Improvements:

  • Added new stress test cases in rot_gtest.yaml with large negative increments for incx and incy, as well as a case with a large negative incy, to validate the correctness of the kernel logic under these scenarios.

JIRA ID : AIROCBLAS-1397

@TorreZuk
TorreZuk requested a review from a team as a code owner October 5, 2026 20:15
@TorreZuk TorreZuk added TestLevel1Only Tests only Level 1 functions in this PR weekly run weekly CI job ci:weekly Run weekly ci job against this PR project: rocblas labels Oct 5, 2026

@evedovelli evedovelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left a suggestion but the changes look good.

@Ryker0627 Ryker0627 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The code fix is good. Just some minor suggestions you may ignore.

@TorreZuk
TorreZuk force-pushed the users/torrezuk/airocblas-1397-rot-bug branch from a27f752 to d94b321 Compare October 7, 2026 20:44
@TorreZuk

TorreZuk commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@Ryker0627 @evedovelli look at last removal commit that is incx,incy 64bit only which is all that we currently have. Optimization can restore the previous branching code pattern if it ever gets done

@therock-pr-bot

therock-pr-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot

therock-pr-bot Bot commented Oct 7, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@TorreZuk
TorreZuk merged commit 240d993 into develop Oct 8, 2026
112 of 113 checks passed
@TorreZuk
TorreZuk deleted the users/torrezuk/airocblas-1397-rot-bug branch October 8, 2026 15:21
assistant-librarian Bot pushed a commit to ROCm/rocBLAS that referenced this pull request Oct 8, 2026
fix(rocBLAS) : rot and rot_ex fix ILP64 large N inc handling
 (#13114)

## Motivation

This pull request addresses the handling of negative increments in the
64-bit `rot` kernel launcher, ensuring that offsets are correctly
computed when `incx` or `incy` are negative. Additionally, new stress
test cases are added to verify this behavior.

**Kernel Logic Fixes:**

* Updated the computation of `shiftx` and `shifty` in
`rocblas_internal_rot_launcher_64` (in `rocblas_rot_kernels_64.cpp`) to
correctly handle negative increments by adjusting the offset
calculation, ensuring the correct starting point for negative strides.

**Testing Improvements:**

* Added new stress test cases in `rot_gtest.yaml` with large negative
increments for `incx` and `incy`, as well as a case with a large
negative `incy`, to validate the correctness of the kernel logic under
these scenarios.

JIRA ID : AIROCBLAS-1397
@assistant-librarian

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:weekly Run weekly ci job against this PR organization: ROCm project: rocblas TestLevel1Only Tests only Level 1 functions in this PR weekly run weekly CI job

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants