mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 12:20:52 +00:00
- 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
15 lines
516 B
Diff
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
|