xref: /petsc/config/examples/arch-ci-linux-gcc-ifc-cmplx.py (revision 54c656ecd1eed152dd1f31c4d3dfa2dca30fef2d)
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/gcc-7.4.0-ifort-19.0.3/mpich-3.3.2'
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',
22
23  'COPTFLAGS=-g -O',
24  'FOPTFLAGS=-g -O',
25  'CXXOPTFLAGS=-g -O',
26
27  '--with-scalar-type=complex',
28  '--download-hdf5',
29  '--with-zlib=1',
30  '--download-kokkos=1',
31  '--download-kokkos-kernels=1',
32  '--download-fblaslapack=1'
33  ]
34
35if __name__ == '__main__':
36  import sys,os
37  sys.path.insert(0,os.path.abspath('config'))
38  import configure
39  configure.petsc_configure(configure_options)
40