xref: /petsc/config/examples/arch-ci-macos-arm.py (revision 7e1a0bbe36d2be40a00a95404ece00db4857f70d)
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  '--download-f2cblaslapack=1',
20  '--with-f2cblaslapack-fp16-bindings=1',
21  #'--with-coverage',
22  '--with-strict-petscerrorcode',
23  ]
24
25if __name__ == '__main__':
26  import sys,os
27  sys.path.insert(0,os.path.abspath('config'))
28  import configure
29  configure.petsc_configure(configure_options)
30