mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1174] [CLOSED] expert profile: refuse a header version other than 1, naming both numbers and the file #3286
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#3286
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/1174
Author: @Avicennasis
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:fix/expert-profile-version-2📝 Commits (1)
b540ebaexpert profile: refuse a header version other than 1, naming both numbers and the file📊 Changes
3 files changed (+93 additions, -1 deletions)
View changed files
📝
CMakeLists.txt(+8 -0)📝
src/core/expert_cache.cpp(+12 -1)➕
tests/core/expert_profile_version_test.cpp(+73 -0)📄 Description
Reopens #632, which GitHub closed when
mainwas force-pushed in the history cleanup (your note there). Same change, cherry-picked onto the newmain(82f46a8c); it applied cleanly, andmainstill has(void) version;at the read.What it does:
read_expert_profilechecks the header's version before the geometry. A version other than 1 is refused with the version found, the one this engine reads, and the file, instead of being read as a version 1 layout.tests/core/expert_profile_version_test.cpp(CPU only, no device touched) covers version 2, version 0, a version 2 file of another geometry (refused by its version, not its geometry), and that version 1 still loads.Verified here, on a machine without a CUDA toolkit:
expert_cache.cpp+vmm.cppcompiled against a stub of the CUDA headers, the test linked and run: OK; the siblingexpert_profile_save_test: OK; the same test linked againstmain'sexpert_cache.cppfails on all five refusal checks, so the test does test the change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.