Skip to content

Do not close file after mmap (Windows version)#1034

Merged
dfyz merged 1 commit intoggml-org:masterfrom
dfyz:mmap-close-fix-windows
Apr 18, 2023
Merged

Do not close file after mmap (Windows version)#1034
dfyz merged 1 commit intoggml-org:masterfrom
dfyz:mmap-close-fix-windows

Conversation

@dfyz
Copy link
Copy Markdown
Contributor

@dfyz dfyz commented Apr 18, 2023

This is the Windows version of #1017. Just as with Unix-based systems, closing the same handle twice is mostly harmless, but when working on #1010, I noticed that the duplicated CloseHandle() triggers an "Invalid handle" exception in the debugger:

(3f00.2cbc): Invalid handle - code c0000008 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll!KiRaiseUserExceptionDispatcher+0x3a:
00007ffb`5e072d6a 8b8424c0000000  mov     eax,dword ptr [rsp+0C0h] ss:0000008e`6cffd230=c0000008

You can skip this exception and continue debugging, but I think it's better to fix this properly.

@dfyz dfyz merged commit 4274722 into ggml-org:master Apr 18, 2023
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* Hadamard transforms for K-cache on CUDA

* Minor

---------

Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants