build pip avx2 packages

This commit is contained in:
mhochsteger@cerbsim.com 2021-11-08 18:07:04 +01:00
parent dc4ba34657
commit 34cdd4a1d7
2 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ cmake_args = [
if 'NETGEN_ARCH' in os.environ: if 'NETGEN_ARCH' in os.environ:
arch = os.environ['NETGEN_ARCH'] arch = os.environ['NETGEN_ARCH']
name += "-"+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}'] cmake_args += [f'-DNG_COMPILE_FLAGS={flag}']
if 'NETGEN_CCACHE' in os.environ: if 'NETGEN_CCACHE' in os.environ:

View File

@ -18,10 +18,10 @@ do
auditwheel repair netgen_mesher*-cp${pyversion}-*.whl auditwheel repair netgen_mesher*-cp${pyversion}-*.whl
rm netgen_mesher-*.whl rm netgen_mesher-*.whl
#rm -rf _skbuild rm -rf _skbuild
#NETGEN_ARCH=avx2 $PYDIR/pip wheel --use-feature=in-tree-build . NETGEN_ARCH=avx2 $PYDIR/pip wheel --use-feature=in-tree-build .
#auditwheel repair netgen_mesher_avx2*-cp${pyversion}-*.whl auditwheel repair netgen_mesher_avx2*-cp${pyversion}-*.whl
#rm netgen_mesher_avx2-*.whl rm netgen_mesher_avx2-*.whl
$PYDIR/pip install wheelhouse/netgen_mesher*-cp${pyversion}-*.whl $PYDIR/pip install wheelhouse/netgen_mesher*-cp${pyversion}-*.whl
$PYDIR/python3 -c 'import netgen' $PYDIR/python3 -c 'import netgen'