mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
When I debug AOTI UT: `TestAOTInductorPackage_cpu::test_add`. I found it didn't output the verbose error code, when PyTorchStreamWriter open failed. This PR add the verbose error code output for debug. Local test shows as below: <img width="1124" height="653" alt="image" src="https://github.com/user-attachments/assets/01cb1a51-2982-4106-8b5b-c608ac26a075" /> The error code is 32, we can check the Windows error code 32 at https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- ``` ERROR_SHARING_VIOLATION 32 (0x20) The process cannot access the file because it is being used by another process. ``` This issue is caused by the file is opened by another process. I fixed same issue in zip open as PR: https://github.com/pytorch/pytorch/pull/162617 But still no idea how to open file with shared access in `std::ofstream`. I will continue to researching it. Pull Request resolved: https://github.com/pytorch/pytorch/pull/162799 Approved by: https://github.com/jansel |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| crc_alt.h | ||
| crc.cc | ||
| file_adapter.cc | ||
| file_adapter.h | ||
| in_memory_adapter.h | ||
| inline_container_test.cc | ||
| inline_container.cc | ||
| inline_container.h | ||
| istream_adapter.cc | ||
| istream_adapter.h | ||
| read_adapter_interface.cc | ||
| read_adapter_interface.h | ||
| versions.h | ||