-
-
Notifications
You must be signed in to change notification settings - Fork 6
adding F-contig layout support + other cleanups #108
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,19 @@ qblas_gemv(char layout, char trans, size_t m, size_t n, | |
| Sleef_quad *beta, Sleef_quad *y, size_t incy) | ||
| { | ||
| if (m == 0 || n == 0) { | ||
| int do_trans = (trans == 'T' || trans == 't' || trans == 'C' || trans == 'c'); | ||
| size_t y_len = do_trans ? n : m; | ||
| if (y_len == 0) { | ||
| return 0; | ||
| } | ||
| if (!y || !beta) { | ||
| return -1; | ||
| } | ||
| Sleef_quad zero = Sleef_cast_from_doubleq1(0.0); | ||
| int beta_zero = Sleef_icmpeqq1(*beta, zero); | ||
| for (size_t i = 0; i < y_len; i++) { | ||
| y[i * incy] = beta_zero ? zero : Sleef_mulq1_u05(*beta, y[i * incy]); | ||
| } | ||
| return 0; | ||
| } | ||
| if (!alpha || !A || !x || !beta || !y) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You already checked |
||
|
|
@@ -66,7 +79,7 @@ qblas_gemm(char layout, char transa, char transb, | |
| Sleef_quad *B, size_t ldb, | ||
| Sleef_quad *beta, Sleef_quad *C, size_t ldc) | ||
| { | ||
| if (m == 0 || n == 0 || k == 0) { | ||
| if (m == 0 || n == 0) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Claude says that no tests hit this code change. You could add a test that does |
||
| return 0; | ||
| } | ||
| if (!alpha || !A || !B || !beta || !C) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.