Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 921 Bytes
--- numpy-1.11.1/numpy/distutils/distutils/unixccompiler.py.org 2016-10-01 23:20:01.926573058 +0000
+++ numpy-1.11.1/numpy/distutils/unixccompiler.py 2016-10-01 23:23:10.481313816 +0000
@@ -47,6 +47,10 @@
try:
self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
extra_postargs, display = display)
+ self.spawn(self.compiler_so + cc_args + ["-march=haswell", "-O3", "-fno-semantic-interposition", "-ffat-lto-objects", "-flto"] + [src, '-o', obj + ".avx2"] +
+ extra_postargs, display = display)
+ self.spawn(self.compiler_so + cc_args + ["-march=skylake-avx512", "-O3", "-fno-semantic-interposition", "-ffat-lto-objects", "-flto", "-mprefer-vector-width=512"] + [src, '-o', obj + ".avx512"] +
+ extra_postargs, display = display)
except DistutilsExecError:
msg = str(get_exception())
raise CompileError(msg)
You can’t perform that action at this time.