1#!/usr/bin/python 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5if not os.path.isdir(petsc_hash_pkgs): os.mkdir(petsc_hash_pkgs) 6 7if __name__ == '__main__': 8 import sys 9 import os 10 sys.path.insert(0, os.path.abspath('config')) 11 import configure 12 configure_options = [ 13 '--package-prefix-hash='+petsc_hash_pkgs, 14 '--with-debugging=0', 15 '--with-clanguage=cxx', 16 'COPTFLAGS=-mavx2 -g -O', 17 'CXXOPTFLAGS=-mavx2 -g -O', 18 'FOPTFLAGS=-mavx2 -g -O', 19 '--with-mpi-dir=/homes/petsc/soft/gcc-avx2/mpich-3.3b1', 20 '--with-blaslapack-dir=/homes/petsc/soft/gcc-avx2/fblaslapack-3.4.2', 21 '--with-memalign=64', 22 '--download-metis=1', 23 '--download-parmetis=1', 24 '--download-superlu_dist=1' 25 ] 26 configure.petsc_configure(configure_options) 27