Skip to content

Add transpose support for C in GEADD (fixes #4646)#5913

Merged
martin-frbg merged 2 commits into
OpenMathLib:developfrom
aadityansha06:feature/geadd-transposition
Jul 15, 2026
Merged

Add transpose support for C in GEADD (fixes #4646)#5913
martin-frbg merged 2 commits into
OpenMathLib:developfrom
aadityansha06:feature/geadd-transposition

Conversation

@aadityansha06

Copy link
Copy Markdown
Contributor

Fixes #4646

Extends GEADD to support independent transposition of both A and C, matching the behavior of cuBLAS's geam and Apple's Accelerate geadd. Previously only A could be transposed.

  • Add transc parameter across cblas.h, common_interface.h, common_level3.h, common_param.h
  • Add transc handling to interface/geadd.c and interface/zgeadd.c
  • Extend kernel/generic/geadd.c and kernel/generic/zgeadd.c with stride logic for transposed C
  • Add transpose test coverage (hand-verified 2x2 cases and randomized large-matrix tests) for sgeadd, dgeadd, cgeadd, zgeadd

cc @martin-frbg

@aadityansha06

Copy link
Copy Markdown
Contributor Author

The C910V test failure is the known timeout issue documented in PR #5900.

  • TEST 126/128 fork:safety consistently times out on C910V QEMU
  • 104/105 tests pass successfully on all other platforms
  • This is not related to the GEADD transpose changes

Awaiting either a re-run or PR #5900 merge to resolve.

Extends GEADD to support independent transposition of both A and C,
matching the behavior of cuBLAS's geam and Apple's Accelerate geadd.
Previously only A could be transposed.

- Add transc parameter across cblas.h, common_interface.h,
  common_level3.h, common_param.h
- Add transc handling to interface/geadd.c and interface/zgeadd.c
- Extend kernel/generic/geadd.c and kernel/generic/zgeadd.c with
  stride logic for transposed C
- Add transpose test coverage (hand-verified 2x2 cases and randomized
  large-matrix tests) for sgeadd, dgeadd, cgeadd, zgeadd
@aadityansha06 aadityansha06 force-pushed the feature/geadd-transposition branch from 916c87d to aade7ec Compare July 15, 2026 11:42
@martin-frbg

Copy link
Copy Markdown
Collaborator

yes, no forced push needed actually - I just can't spend all my time here...
C910 should be reasonable now, and Jenkins is currently borked due to some problems with the Docker nodes at OSUOSL

@martin-frbg martin-frbg added this to the 0.3.34 milestone Jul 15, 2026
@martin-frbg martin-frbg merged commit 3e48730 into OpenMathLib:develop Jul 15, 2026
103 of 106 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.

GEADD is pointless without transposition

2 participants