1#!/usr/bin/env python3 2 3import os 4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs') 5 6oadirf='"/cygdrive/c/Program Files (x86)/Intel/oneAPI"' 7oadir=os.popen('cygpath -u '+os.popen('cygpath -ms '+oadirf).read()).read().strip() 8oamkldir=oadir+'/mkl/latest/lib' 9oampidir=oadir+'/mpi/latest' 10 11if __name__ == '__main__': 12 import sys 13 import os 14 sys.path.insert(0, os.path.abspath('config')) 15 import configure 16 configure_options = [ 17 '--package-prefix-hash='+petsc_hash_pkgs, 18 '--with-debugging=0', 19 '--with-blaslapack-lib=-L'+oamkldir+' mkl_intel_lp64_dll.lib mkl_sequential_dll.lib mkl_core_dll.lib', 20 '--with-cc=cl', 21 '--with-cxx=cl', 22 '--with-fc=ifx', 23 '--with-shared-libraries=0', 24 '--with-mpi-include='+oampidir+'/include', 25 '--with-mpi-lib='+oampidir+'/lib/impi.lib', 26 '--with-mpiexec='+oampidir+'/bin/mpiexec -localonly', 27 '--download-metis', 28 '--download-parmetis', 29 '--with-strict-petscerrorcode=0', 30 ] 31 configure.petsc_configure(configure_options) 32