xref: /petsc/config/examples/arch-ci-linux-gcc-ifc-cmplx.py (revision bcd4bb4a4158aa96f212e9537e87b40407faf83e)
1#!/usr/bin/env python3
2
3import os
4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
5
6# find the ifort libs location
7from shutil import which
8ifort_lib_dir=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(which('ifort')))),'compiler','lib','intel64')
9mpich_install_dir='/nfs/gce/projects/petsc/soft/u22.04/mpich-4.1-gcc1130-ifort20221019'
10mpich_lib_dir=os.path.join(mpich_install_dir,'lib')
11
12configure_options = [
13  '--package-prefix-hash='+petsc_hash_pkgs,
14  # cannot use download-mpich with fortranlib-autodetect=0 so disabling
15  #'--with-cc=gcc',
16  #'--with-fc=ifort',
17  #'--with-cxx=g++',
18  #'--download-mpich=1',
19  #'--download-mpich-pm=gforker',
20  '--with-mpi-dir='+mpich_install_dir,
21  'LIBS=-L'+ifort_lib_dir+' -lifport -lifcoremt_pic -limf -lsvml -lm -lipgo -lirc -lpthread -L'+mpich_lib_dir+' -lmpifort -lmpi -lgcov',
22
23  'COPTFLAGS=-g -O',
24  'FOPTFLAGS=-g -O',
25  'CXXOPTFLAGS=-g -O',
26
27  '--with-scalar-type=complex',
28  '--with-library-name-suffix=CMPLX',
29  '--download-hdf5',
30  '--with-zlib=1',
31  '--download-kokkos=1',
32  '--download-kokkos-kernels=1',
33  '--download-fblaslapack=1',
34  '--with-strict-petscerrorcode',
35  '--with-coverage',
36  ]
37
38if __name__ == '__main__':
39  import sys,os
40  sys.path.insert(0,os.path.abspath('config'))
41  import configure
42  configure.petsc_configure(configure_options)
43