mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2673] [CLOSED] native dense: upload the projection matrices from 8 threads through pinned staging (1.5 s -> 0.3 s) #4205
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#4205
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/2673
Author: @page1
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:feature/dense-upload-threads📝 Commits (2)
ced2a40native dense: upload the projection matrices from 8 threads through pinned staging (1.5 s -> 0.3 s)2f1603anative dense: 8 upload threads by default on Windows only; 1 (the serial copy) elsewhere📊 Changes
1 file changed (+159 additions, -1 deletions)
View changed files
📝
src/core/native_dense.cpp(+159 -1)📄 Description
Title
Issue: none
Summary
On Windows the shard mapping is not read ahead, so one synchronous
cudaMemcpyper matrix took its page faults one at a time: 300 projection matrices, 2019 MiB, in 1.5 s. Now 8 threads copy them in 8 MiB pieces through pinned staging: 0.3 s. The GPU holds the same bytes (checksum below).What changed
src/core/native_dense.cpp: the matrices are allocated as before, then copied in 8 MiB pieces by 8 threads. On Windows each thread reads its piece withReadFileinto a double-buffered pinned staging buffer andcudaMemcpyAsyncon its own stream. Elsewhere, or if the file cannot be opened, a piece is copied from the mapping.STRATA_DENSE_UPLOAD_THREADS=Nsets the threads;1keeps the serial path.STRATA_DENSE_CHECKSUM=1hashes the matrices as the GPU holds them:e2a34e261e2077ddfor both the threaded and the serial path (IQ3_S, 300 matrices, on v0.1.44.1).Extra Notes
Measured on an RTX 3090 24 GB, Core Ultra 9 285K, 95 GB DDR5, WD SN8100, Windows 11 26300, IQ3_S at 262K context, against a source build of v0.1.44.1 (
296b59d2) the same day. 6 + 6 server starts in a rotated order,/healthpolled every 0.25 s:Built: CUDA 13.4 (sm_86) only. Not built for HIP or SYCL (no ROCm or oneAPI here), and the non-Windows path (from the mapping) was not run.
native_dense.cppis part of the HIP build, so it needs a HIP build check.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.