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-dir=/scratch/soft/mpich', 14 '--download-fblaslapack', 15 '--download-cmake', 16 'LDFLAGS=-L/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/lib -lquadmath', 17 'COPTFLAGS=-g -O', 18 'FOPTFLAGS=-g -O', 19 'CXXOPTFLAGS=-g -O', 20 'HIPOPTFLAGS=-g -O', 21 '--with-cuda=0', 22 '--with-hip=1', 23 '--with-hipc=/opt/rocm/bin/hipcc', 24 '--with-hip-dir=/opt/rocm', 25 '--with-precision=double', 26 '--with-clanguage=c', 27 '--download-kokkos', 28 '--download-kokkos-kernels', 29 '--download-hypre', 30 '--download-hypre-configure-arguments=--enable-unified-memory', 31 '--download-magma', 32 '--with-magma-fortran-bindings=0', 33 ] 34 35 configure.petsc_configure(configure_options) 36