Skip to content

[Math] Protect against C == nullptr in SOFIE::Gemm_Call pullback#21490

Open
guitargeek wants to merge 1 commit intoroot-project:masterfrom
guitargeek:sgemm_derivative
Open

[Math] Protect against C == nullptr in SOFIE::Gemm_Call pullback#21490
guitargeek wants to merge 1 commit intoroot-project:masterfrom
guitargeek:sgemm_derivative

Conversation

@guitargeek
Copy link
Contributor

It's possible to call gemm without a C parameter (constant offset), so the custom derivative can't assume that C and _d_C are always set.

This avoids segfaults when C is nullptr.

It's possible to call `gemm` without a `C` parameter (constant offset),
so the custom derivative can't assume that `C` and `_d_C` are always
set.

This avoids segfaults when `C` is `nullptr`.
@guitargeek guitargeek requested a review from lmoneta March 4, 2026 15:00
@guitargeek guitargeek self-assigned this Mar 4, 2026
@guitargeek guitargeek changed the title [Math] Protect against C=nullptr in SOFIE::Gemm_Call pullback [Math] Protect against C == nullptr in SOFIE::Gemm_Call pullback Mar 4, 2026
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Test Results

    22 files      22 suites   3d 7h 57m 45s ⏱️
 3 805 tests  3 803 ✅ 1 💤 1 ❌
76 590 runs  76 580 ✅ 9 💤 1 ❌

For more details on these failures, see this check.

Results for commit 00b413c.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant