Files
termux-packages/packages/python-torch/0011-dlopen-libc.so.patch
termux-pacman-bot b74eb46126 bump(main/python-torch): 2.9.1
- Fixes https://github.com/termux/termux-packages/issues/27525

- Fixes https://github.com/termux/termux-packages/issues/25792

- Enable `USE_DISTRIBUTED` and apply patches necessary for it to compile and run properly
2025-12-07 06:43:53 +00:00

15 lines
379 B
Diff

Prevents OSError: dlopen failed: library "libc.so.6" not found
(at runtime)
--- a/torch/distributed/elastic/multiprocessing/redirects.py
+++ b/torch/distributed/elastic/multiprocessing/redirects.py
@@ -31,7 +31,7 @@ def get_libc():
)
return None
else:
- return ctypes.CDLL("libc.so.6")
+ return ctypes.CDLL("libc.so")
libc = get_libc()