[PR #465] [CLOSED] ds4_gguf_test: compile on Windows (_fseeki64 instead of fseeko) #545

Closed
opened 2026-10-29 21:26:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/465
Author: @OscarSheng
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: ds4-test-windows-seek


📝 Commits (1)

  • bd0eb87 ds4_gguf_test: builds on Windows again (--real seeks with _fseeki64 there)

📊 Changes

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

View changed files

📝 tests/ds4_gguf_test.cu (+6 -1)

📄 Description

v1.1.27's tests/ds4_gguf_test.cu uses fseeko in --real mode. MSVC has no fseeko, so on Windows the test does not compile: tests\ds4_gguf_test.cu(2152): error: identifier "fseeko" is undefined, and a build of maya-ds4 together with ds4_gguf_test stops there.

This uses _fseeki64 on Windows and keeps fseeko everywhere else, the same way src/core/weights.cpp, src/core/pinned.cu and src/core/mtp.cpp already do.

What it leaves alone: only this one seek in --real changes. On Linux and macOS the code is the same as before. The engine is not touched.

How I checked (Windows 11, RTX PRO 6000 Blackwell, CUDA 12.8, MSVC 2022, sm_120):

  • v1.1.27 as released: the build stops with the error above.
  • This branch: maya-ds4 and ds4_gguf_test build, ds4_gguf_test prints ALL OK (0 failed), and tools/check_hip_compat.py passes.
  • --real on rows of ISTA-DASLab's GSQ-RCO IQ2_XS GGUF, from 0.01 GB to 31.8 GB into the files (past the 2 GB and 4 GB marks where a 32-bit seek would go wrong): IQ2_XXS, IQ2_XS, IQ2_S and IQ3_XXS experts, a Q5_K dense matrix and the Q5_K token embedding are all ok.
  • An offset 1 MB past the end of a 39.5 GB file returns 3 (the read fails), as it should.
  • Not tested: Linux, macOS (unchanged code) and AMD.

🤖 Generated with Claude Code


🔄 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/mw00/project-maya/pull/465 **Author:** [@OscarSheng](https://github.com/OscarSheng) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `ds4-test-windows-seek` --- ### 📝 Commits (1) - [`bd0eb87`](https://github.com/mw00/project-maya/commit/bd0eb87389cd11a67f541f41dd17bc3457614c95) ds4_gguf_test: builds on Windows again (--real seeks with _fseeki64 there) ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/ds4_gguf_test.cu` (+6 -1) </details> ### 📄 Description v1.1.27's `tests/ds4_gguf_test.cu` uses `fseeko` in `--real` mode. MSVC has no `fseeko`, so on Windows the test does not compile: `tests\ds4_gguf_test.cu(2152): error: identifier "fseeko" is undefined`, and a build of `maya-ds4` together with `ds4_gguf_test` stops there. This uses `_fseeki64` on Windows and keeps `fseeko` everywhere else, the same way `src/core/weights.cpp`, `src/core/pinned.cu` and `src/core/mtp.cpp` already do. **What it leaves alone:** only this one seek in `--real` changes. On Linux and macOS the code is the same as before. The engine is not touched. **How I checked** (Windows 11, RTX PRO 6000 Blackwell, CUDA 12.8, MSVC 2022, sm_120): - v1.1.27 as released: the build stops with the error above. - This branch: `maya-ds4` and `ds4_gguf_test` build, `ds4_gguf_test` prints `ALL OK (0 failed)`, and `tools/check_hip_compat.py` passes. - `--real` on rows of ISTA-DASLab's GSQ-RCO IQ2_XS GGUF, from 0.01 GB to 31.8 GB into the files (past the 2 GB and 4 GB marks where a 32-bit seek would go wrong): IQ2_XXS, IQ2_XS, IQ2_S and IQ3_XXS experts, a Q5_K dense matrix and the Q5_K token embedding are all ok. - An offset 1 MB past the end of a 39.5 GB file returns 3 (the read fails), as it should. - Not tested: Linux, macOS (unchanged code) and AMD. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:26:39 +07:00
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#545
No description provided.