summarylogtreecommitdiffstats
path: root/030-caffe2-disable-non-x86_64.patch
diff options
context:
space:
mode:
Diffstat (limited to '030-caffe2-disable-non-x86_64.patch')
-rw-r--r--030-caffe2-disable-non-x86_64.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/030-caffe2-disable-non-x86_64.patch b/030-caffe2-disable-non-x86_64.patch
new file mode 100644
index 000000000000..a9f4c449b12d
--- /dev/null
+++ b/030-caffe2-disable-non-x86_64.patch
@@ -0,0 +1,13 @@
+--- a/tools/setup_helpers/cmake.py
++++ b/tools/setup_helpers/cmake.py
+@@ -295,6 +295,10 @@ class CMake:
+ build_options.update(cmake__options)
+
+ CMake.defines(args,
++ DISABLE_AVX2=1,
++ DISABLE_AVX512F=1,
++ DISABLE_FMA4=1,
++ DISABLE_SSE4=1,
+ PYTHON_EXECUTABLE=sys.executable,
+ PYTHON_LIBRARY=cmake_python_library,
+ PYTHON_INCLUDE_DIR=distutils.sysconfig.get_python_inc(),