xref: /petsc/config/examples/arch-ci-mswin-opt-impi.py (revision 76be6f4ff3bd4e251c19fc00ebbebfd58b6e7589)
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/2022.1.0/lib/intel64'
9oampidir=oadir+'/mpi/2021.6.0'
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=win32fe cl',
21    '--with-cxx=win32fe cl',
22    '--with-fc=win32fe ifort',
23    '--with-mpi-include='+oampidir+'/include',
24    '--with-mpi-lib='+oampidir+'/lib/release/impi.lib',
25    '-with-mpiexec='+oampidir+'/bin/mpiexec -localonly',
26  ]
27  configure.petsc_configure(configure_options)
28