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
509 B
Diff
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:
|