Files
termux-packages/packages/python-torch/0013-link-libomp.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
509 B
Diff

Prevents ld.lld: error: unable to find library -lgomp
(at runtime)
--- a/torch/_inductor/cpp_builder.py
+++ b/torch/_inductor/cpp_builder.py
@@ -1311,7 +1311,7 @@ def _get_openmp_args(
if _is_clang(cpp_compiler):
# TODO: fix issue, can't find omp.h
cflags.append("fopenmp")
- libs.append("gomp")
+ libs.append("omp")
elif _is_intel_compiler(cpp_compiler):
cflags.append("fiopenmp")
else: