[PR #240] [CLOSED] gemm: name the cuBLAS/CUDA call that failed at init, and flag resource shortages #2523

Closed
opened 2026-11-04 02:00:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • cb00604 gemm: 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::init collapsed 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 attaching a debugger.

Gemm::init collapsed 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 N or cudaGetErrorString - and optionally set resource_failure when 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/240 **Author:** [@lukmanfauzie](https://github.com/lukmanfauzie) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr-cublas-init-errors-0128` --- ### 📝 Commits (1) - [`cb00604`](https://github.com/Niko1221/Strata/commit/cb00604f5193761b45688feb728e75afd59a07b6) gemm: name the cuBLAS/CUDA call that failed at init, and flag resource shortages ### 📊 Changes **2 files changed** (+29 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/prefill/gemm.hpp` (+4 -1) 📝 `src/prefill/gemm.cu` (+25 -10) </details> ### 📄 Description The independent one @Niko1221 asked to split out part of #151, onto v0.1.29 (`d6708a4`). No behaviour change: `Gemm::init` collapsed 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 attaching a debugger. `Gemm::init` collapsed 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 N` or `cudaGetErrorString` - and optionally set `resource_failure` when 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:57 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2523
No description provided.