diff options
author | Martin Diehl | 2022-02-06 11:58:50 +0100 |
---|---|---|
committer | Martin Diehl | 2022-02-06 11:58:50 +0100 |
commit | 48d7daf27bfc8e39cc52efa0f90723c3cf870855 (patch) | |
tree | 7e39918c6a848fe4bc626143c07de5d00cb87d1d | |
parent | 30eb914a54738c9fee7295f82489dedae369e7e4 (diff) | |
download | aur-48d7daf27bfc8e39cc52efa0f90723c3cf870855.tar.gz |
PETSc is for number crunching
enabled machine-specific optimization
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = petsc pkgdesc = Portable, extensible toolkit for scientific computation pkgver = 3.16.4 - pkgrel = 1 + pkgrel = 2 url = https://www.mcs.anl.gov/petsc install = petsc.install arch = i686 @@ -4,7 +4,7 @@ # Contributor: Lucas H. Gabrielli <heitzmann at gmail dot com> pkgname=petsc pkgver=3.16.4 -pkgrel=1 +pkgrel=2 _config=linux-c-opt # if --with-debugging=yes is set then PETSC_ARCH is automatically set to #"linux-c-debug" for some things, so the _config should be changed too @@ -47,15 +47,16 @@ build() { export PETSC_ARCH=${_petsc_arch} export PETSC_DIR=${_build_dir} + OPTFLAGS='-O3 -march=native' CONFOPTS="--with-shared-libraries=1 \ --with-petsc4py=1 \ --with-mpi-f90module-visibility=0 \ - --COPTFLAGS=-O3 --CXXOPTFLAGS=-O3 --FOPTFLAGS=-O3 \ --with-cc=$(which mpicc) --with-cxx=$(which mpicxx) --with-fc=$(which mpifort) \ $(sh ${srcdir}/test_optdepends.sh)" echo ${CONFOPTS} - python ./configure --prefix=${_install_dir} ${CONFOPTS} + python ./configure --prefix=${_install_dir} ${CONFOPTS} \ + --COPTFLAGS=${OPTFLAGS} --CXXOPTFLAGS=${OPTFLAGS} --FOPTFLAGS=${OPTFLAGS} make ${MAKEFLAGS} all make DESTDIR=${srcdir}/tmp install |