xref: /petsc/config/examples/arch-ci-macos-arm.py (revision 58256f306a3b839fcaddd686dc61d2820e658499)
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-mpi-dir=/Users/petsc/soft/mpich-4.3.0-p2-ofi',
9  '--with-64-bit-indices=1',
10  '--with-clanguage=cxx',
11  'CXXFLAGS=-Wall -Wwrite-strings -Wshorten-64-to-32 -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Wno-deprecated -fvisibility=hidden',
12  'COPTFLAGS=-g -O',
13  'FOPTFLAGS=-g -O',
14  'CXXOPTFLAGS=-g -O',
15  '--with-petsc4py=1',
16  '--download-mpi4py=1',
17  '--download-make=1',
18  '--download-slepc=1',
19  '--with-slepc4py=1',
20  '--download-f2cblaslapack=1',
21  '--with-f2cblaslapack-fp16-bindings=1',
22  #'--with-coverage',
23  '--with-strict-petscerrorcode',
24  ]
25
26if __name__ == '__main__':
27  import sys,os
28  sys.path.insert(0,os.path.abspath('config'))
29  import configure
30  configure.petsc_configure(configure_options)
31