xref: /petsc/config/examples/arch-ci-macos-cxx-pkgs-opt-arm.py (revision 683646a77648e78668ea31b350425eb8fd044766)
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', # https://brew.sh/
11
12  'CXXFLAGS=-Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -Wno-deprecated -fno-stack-check',
13  '--with-clanguage=cxx',
14  '--with-debugging=0',
15  '--debugLevel=4',
16
17  #'--prefix=petsc-install', temporarily disable for gitlab-ci
18
19  '--download-netlib-lapack=1',
20  #'--download-mpich=1',
21  #'--download-mpich-device=ch3:sock',
22  #'--download-mpich-configure-arguments=--disable-two-level-namespace', # workaround for AMREX build failure with MPICH 4.0.1 and above
23  '--with-mpi-dir=/Users/petsc/soft/mpich-4.3.0-p2-ofi',
24  '--download-metis=1',
25  '--download-parmetis=1',
26  '--download-bison=1',
27  '--download-ptscotch=1',
28  '--download-triangle=1',
29  '--download-triangle-build-exec=1',
30  '--download-superlu=1',
31  '--download-superlu_dist=1',
32  '--download-scalapack=1',
33  #'--download-mumps=1', #'make check gives error
34  '--download-parms=1',
35  '--download-hdf5=1',
36  '--download-sundials2=1',
37  '--download-hypre=1',
38  '--download-amrex=1',
39  '--download-cmake=1',
40  '--download-suitesparse=1',
41  '--download-chaco=1',
42  '--download-spai=1',
43  '--download-moab=1',
44  #'--download-saws', #needs /usr/bin/python [missing in newer MacOS]
45  '--download-revolve=1',
46  '--download-cams=1',
47  '--download-ctetgen=1',
48  '--download-tetgen=1',
49  '--download-tetgen-build-exec=1',
50  '--download-mfem=1',
51  '--download-glvis=1',
52  '--download-hpddm=1',
53  '--with-opengl=1',
54  '--download-adolc=1',
55  '--download-colpack=1',
56  '--download-mmg=1',
57  #'--download-parmmg=1',
58  '--download-kokkos=1',
59  '--download-kokkos-kernels=1',
60  '--download-htool=1',
61  '--download-exodusii',
62  '--with-exodusii-fortran-bindings',
63  '--download-ks',
64  '--download-ml',
65  '--download-netcdf',
66  '--download-pnetcdf',
67  '--download-zlib',
68  '--download-pflare=1',
69  '--with-strict-petscerrorcode',
70  ]
71
72if __name__ == '__main__':
73  import sys,os
74  sys.path.insert(0,os.path.abspath('config'))
75  import configure
76  configure.petsc_configure(configure_options)
77