[PR #3079] [CLOSED] [Engine] prefill: check both f16-range symbol writes on the reset path #4440

Closed
opened 2026-11-07 15:35:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3079
Author: @ken2425pm
Created: 10/18/2026
Status: ❌ Closed

Base: main ← Head: fix-f16-reset


📝 Commits (1)

  • 1af0150 prefill: check both f16-range symbol writes on the reset path

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 src/prefill/kernels.cu (+5 -1)

📄 Description

Problem and result: f16_range_read(reset=true) fired the two cudaMemcpyToSymbol writes and never looked at the result. If one failed, the symbol kept its old value and the next read reported a stale cumulative count with nothing saying the reset did not happen. After the change both writes always run and both results are checked; failure is reported.

Related discussion: none found beyond the closed #3079 of the same content (0.2.0-beta tracker reset); reopened per that note.

Approach: evaluate both writes into locals — a failed first write must not skip the second — then check both and report failure. Unchanged when both succeed: still exactly two symbol writes and one error check, and the reads are untouched.

Validation:

  • Passed: compiles on the gfx906 HIP target of this checkout (v0.2.6, system ROCm 6.3.3, clang 18 — part of the linking build described in the alignas PR).
  • Failed: none observed.
  • Not run: a CUDA build (no CUDA toolkit on this box; the change is toolchain-neutral logic); a runtime reset-cycle exercise (the changed path is the error path only — the normal path's behaviour is untouched by construction).

Limits: none known.


🔄 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/3079 **Author:** [@ken2425pm](https://github.com/ken2425pm) **Created:** 10/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-f16-reset` --- ### 📝 Commits (1) - [`1af0150`](https://github.com/Niko1221/Strata/commit/1af0150e5292dcf5ec3fabe9aa370ecbe266f195) prefill: check both f16-range symbol writes on the reset path ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/prefill/kernels.cu` (+5 -1) </details> ### 📄 Description Problem and result: `f16_range_read(reset=true)` fired the two `cudaMemcpyToSymbol` writes and never looked at the result. If one failed, the symbol kept its old value and the next read reported a stale cumulative count with nothing saying the reset did not happen. After the change both writes always run and both results are checked; failure is reported. Related discussion: none found beyond the closed #3079 of the same content (0.2.0-beta tracker reset); reopened per that note. Approach: evaluate both writes into locals — a failed first write must not skip the second — then check both and report failure. Unchanged when both succeed: still exactly two symbol writes and one error check, and the reads are untouched. Validation: - Passed: compiles on the gfx906 HIP target of this checkout (v0.2.6, system ROCm 6.3.3, clang 18 — part of the linking build described in the alignas PR). - Failed: none observed. - Not run: a CUDA build (no CUDA toolkit on this box; the change is toolchain-neutral logic); a runtime reset-cycle exercise (the changed path is the error path only — the normal path's behaviour is untouched by construction). Limits: none known. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:35:44 +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#4440
No description provided.