Files
macports-ports/python/py-xformers/files/patch-setup_py-no-openmp.diff
Paul Guyot 3bec375e32 py-xformers: new port (0.0.35)
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2026-03-22 10:43:56 -04:00

12 lines
512 B
Diff

--- setup.py.orig 2024-01-01 00:00:00.000000000 +0000
+++ setup.py 2024-01-01 00:00:00.000000000 +0000
@@ -198,7 +198,7 @@
extra_compile_args["cxx"].extend(
["/MP", "/Zc:lambda", "/Zc:preprocessor", "/Zc:__cplusplus"]
)
- elif "OpenMP not found" not in torch.__config__.parallel_info():
+ elif sys.platform != "darwin" and "OpenMP not found" not in torch.__config__.parallel_info():
extra_compile_args["cxx"].append("-fopenmp")
include_dirs = [extensions_dir]