mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #93] CPU-only configure: missing tests/ directory and dequant_bf16_test linking cudart outside the CUDA guard #51
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#51
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?
Originally created by @Avicennasis on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/93
Two things a CPU-only configure trips over on
main(c1e9033, 0.1.20), found while building the tests for the GGUF reader and shard-check PRs. Neither is touched by those PRs.The published tree has no
tests/directory, but the top-levelCMakeLists.txtadds it, socmake -B build -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=ONfails at configure until an emptytests/CMakeLists.txtis dropped in. Either the directory is missing from the repository or theadd_subdirectoryshould be guarded on its existence.dequant_bf16_testlinksCUDA::cudartoutside the CUDA guard (aroundCMakeLists.txt:574-575), so withSTRATA_ENABLE_CUDA=OFFconfigure fails on the missing imported target; with a stub target injected the build then fails oncuda_runtime.h. The target should sit inside theSTRATA_ENABLE_CUDAblock (it is not a ctest, so nothing else moves).With both worked around locally, the CPU build produces 9 ctests; 8 pass on a Ryzen 7 5800X and
expert_multi_testrefuses with the kernel's own AVX-512 check, which is correct for that CPU. Happy to send the two-line fix if you want it as a PR.@Niko1221 commented on GitHub (Sep 29, 2026):
Fixed in 0.1.23:
dequant_bf16_testis only built with CUDA, so a CPU-only configure with the tests works. Thanks @Avicennasis!