From 34cdd4a1d74d99f70965718f2c2ad25c4a0c877c Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Mon, 8 Nov 2021 18:07:04 +0100 Subject: [PATCH] build pip avx2 packages --- setup.py | 2 +- tests/build_pip.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index d72a9d56..afb8b972 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ cmake_args = [ if 'NETGEN_ARCH' in os.environ: arch = os.environ['NETGEN_ARCH'] name += "-"+arch - flag = '/'+arch if 'win' in sys.platform else f'-march={arch}' + flag = '/'+arch if 'win' in sys.platform else '-march=core-avx2' cmake_args += [f'-DNG_COMPILE_FLAGS={flag}'] if 'NETGEN_CCACHE' in os.environ: diff --git a/tests/build_pip.sh b/tests/build_pip.sh index c744be9c..5399bb1a 100755 --- a/tests/build_pip.sh +++ b/tests/build_pip.sh @@ -18,10 +18,10 @@ do auditwheel repair netgen_mesher*-cp${pyversion}-*.whl rm netgen_mesher-*.whl - #rm -rf _skbuild - #NETGEN_ARCH=avx2 $PYDIR/pip wheel --use-feature=in-tree-build . - #auditwheel repair netgen_mesher_avx2*-cp${pyversion}-*.whl - #rm netgen_mesher_avx2-*.whl + rm -rf _skbuild + NETGEN_ARCH=avx2 $PYDIR/pip wheel --use-feature=in-tree-build . + auditwheel repair netgen_mesher_avx2*-cp${pyversion}-*.whl + rm netgen_mesher_avx2-*.whl $PYDIR/pip install wheelhouse/netgen_mesher*-cp${pyversion}-*.whl $PYDIR/python3 -c 'import netgen'