1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6if __name__ == '__main__': 7 import sys 8 import os 9 sys.path.insert(0, os.path.abspath('config')) 10 import configure 11 configure_options = [ 12 '--package-prefix-hash='+petsc_hash_pkgs, 13 '--with-debugging=0', 14 '--with-cc=mpiicc', 15 '--with-cxx=mpiicpc', 16 '--with-fc=mpiifort', 17 '--with-memalign=64', 18 '--with-memkind-dir=/nfs/gce/projects/petsc/soft/u22.04/memkind-1.14.0', 19 '--with-mpiexec=mpiexec.hydra', 20 # Note: Use -mP2OPT_hpo_vec_remainder=F for intel compilers < version 18. 21 'COPTFLAGS=-g -O3', # -xMIC-AVX512 22 'CXXOPTFLAGS=-g -O3', # -xMIC-AVX512 23 'FOPTFLAGS=-g -O3', # -xMIC-AVX512 24 '--with-avx512-kernels=1', 25 '--with-blaslapack-dir='+os.environ['MKLROOT'], 26 '--download-metis=1', 27 '--download-parmetis=1', 28 '--download-superlu_dist=1' 29 ] 30 configure.petsc_configure(configure_options) 31