mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
build pip avx2 packages
This commit is contained in:
parent
dc4ba34657
commit
34cdd4a1d7
2
setup.py
2
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:
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user