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-cudac=0', 14 '--with-hipc=0', 15 '--download-mpich', 16 '--with-cc=clang', 17 '--with-cxx=clang++', 18 '--with-fc=0', 19 '--with-debugging=1', 20 'CFLAGS=-fsanitize=address,undefined', 21 'CXXFLAGS=-fsanitize=address,undefined', 22 'LDFLAGS=-lubsan', 23 '--with-strict-petscerrorcode', 24 ] 25 configure.petsc_configure(configure_options) 26