Files
termux-packages/packages/python-torch/0012-default-clang.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
516 B
Diff

Prevents g++: error: unknown argument: '-fno-tree-loop-vectorize'
(at runtime)
--- a/torch/_inductor/config.py
+++ b/torch/_inductor/config.py
@@ -1107,7 +1107,7 @@ class cpp:
cxx: tuple[Literal[None], str] = (
None, # download gcc12 from conda-forge if conda is installed
- os.environ.get("CXX", "clang++" if sys.platform == "darwin" else "g++"),
+ os.environ.get("CXX", "clang++"),
) # type: ignore[assignment]
# Allow kernel performance profiling via PyTorch profiler