1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6configure_options = [ 7 '--package-prefix-hash='+petsc_hash_pkgs, 8 '--with-cc=clang', 9 '--with-cxx=clang++', 10 '--with-fc=gfortran', 11 '--with-debugging=1', 12 '--debugLevel=4', 13 'COPTFLAGS=-g -O', 14 'FOPTFLAGS=-g -O', 15 'CXXOPTFLAGS=-g -O', 16 '--download-openmpi=https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.6.tar.bz2', 17 '--download-fblaslapack=1', 18 '--with-openmp=1', 19 '--with-openmp-kernels', 20 '--with-fortran-kernels', 21 '--with-threadsafety=1', 22 '--download-hwloc=https://download.open-mpi.org/release/hwloc/v2.9/hwloc-2.9.3.tar.bz2', 23 #'--download-hypre=1', disabled as hypre produces wrong results when openmp is enabled 24 #'--download-cmake=1', 25 '--download-metis=1', 26 '--download-parmetis=1', 27 '--download-ptscotch=1', 28 '--download-suitesparse=1', 29 '--download-triangle=1', 30 '--download-triangle-build-exec=1', 31 '--download-superlu=1', 32 #'--download-superlu_dist=1', 33 '--download-scalapack=1', 34 '--download-strumpack=1', 35 '--download-mumps=1', 36 # '--download-elemental=1', # disabled since its maxCxxVersion is c++14, but Kokkos-4.0's minCxxVersion is c++17 37 '--download-spai=1', 38 '--download-parms=1', 39 '--download-kokkos=1', 40 '--download-kokkos-kernels=1', 41 '--with-kokkos-init-warnings=0', # we want to avoid "Kokkos::OpenMP::initialize WARNING: You are likely oversubscribing your CPU cores" in test output 42 '--download-chaco=1', 43 '--with-strict-petscerrorcode', 44 #'--with-coverage', 45 ] 46 47if __name__ == '__main__': 48 import sys,os 49 sys.path.insert(0,os.path.abspath('config')) 50 import configure 51 configure.petsc_configure(configure_options) 52