mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #240] [CLOSED] gemm: name the cuBLAS/CUDA call that failed at init, and flag resource shortages #2523
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2523
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/240
Author: @lukmanfauzie
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:pr-cublas-init-errors-0128📝 Commits (1)
cb00604gemm: name the cuBLAS/CUDA call that failed at init, and flag resource shortages📊 Changes
2 files changed (+29 additions, -11 deletions)
View changed files
📝
include/strata/prefill/gemm.hpp(+4 -1)📝
src/prefill/gemm.cu(+25 -10)📄 Description
The independent one @Niko1221 asked to split out part of #151, onto v0.1.29 (
d6708a4). No behaviour change:Gemm::initcollapsed five distinct failures into three bare strings ("cublasCreate failed", "workspace", "dequant scratch of N MiB"), so an initfailure on a tight machine could not be told apart from a driver or install problem without attaching a debugger.
Gemm::initcollapsed five distinct failures into three bare strings ("cublasCreate failed", "workspace", "dequant scratch of N MiB"), so an init failure on a tight machine could not be told apart from a driver or install problem without a debugger.Each call is now checked through two small helpers that report the operation and the real status -
cuBLAS status NorcudaGetErrorString- and optionally setresource_failurewhen the failure means the machine is out of room (CUBLAS_STATUS_ALLOC_FAILED,cudaErrorMemoryAllocation). A caller can then retry with a smaller cache or prompt instead of treating a shortage as fatal.The parameter is defaulted to nullptr, so every existing caller is source-compatible; the upstream HIP/hipblaslt block is untouched.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.