1#!/usr/bin/python 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-mpi=0', 14 '--with-cc=clang', 15 '--with-cxx=clang++', 16 '--with-fc=gfortran', 17 '--with-cuda=1', 18 '--download-hdf5', 19 '--download-metis', 20 '--download-superlu', 21 '--download-mumps', 22 '--with-mumps-serial', 23 'CUDAFLAGS=-ccbin clang++', 24 'CFLAGS=-Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -Wno-unused-function', # should be CXXFLAGS 25 '--with-shared-libraries=1', 26 ] 27 configure.petsc_configure(configure_options) 28 29