xref: /petsc/config/examples/arch-alcfci-theta-intel-opt.py (revision 2f613bf53f46f9356e00a2ca2bd69453be72fc31)
1#!/usr/bin/python
2
3import os
4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
5
6configure_options = [
7  #'--package-prefix-hash='+petsc_hash_pkgs,
8  '--with-make-np=8',
9  '--with-cc=cc',
10  '--with-cxx=CC',
11  '--with-fc=ftn',
12  '--with-debugging=0',
13  '--COPTFLAGS=-g -xMIC-AVX512 -O3',
14  '--CXXOPTFLAGS=-g -xMIC-AVX512 -O3',
15  '--FOPTFLAGS=-g -xMIC-AVX512 -O3',
16  '--LDFLAGS=-dynamic',
17  '--LIBS=-lstdc++',
18  '--with-blaslapack-lib=-mkl -L'+os.path.join(os.environ['MKLROOT'],'lib','intel64'),
19  '--with-mkl_sparse=0',
20  '--with-mkl_sparse_optimize=0',
21  '--download-chaco=1',
22  '--download-exodusii=1',
23  '--download-metis=1',
24  '--download-parmetis=1',
25  '--with-hdf5=1',
26  '--with-netcdf-dir='+os.environ['CRAY_NETCDF_HDF5PARALLEL_PREFIX'],
27  '--with-pnetcdf-dir='+os.environ['CRAY_PARALLEL_NETCDF_PREFIX'],
28  '--with-zlib=1',
29  '--with-batch=1',
30  '--known-64-bit-blas-indices=0',
31]
32
33if __name__ == '__main__':
34  import sys,os
35  sys.path.insert(0,os.path.abspath('config'))
36  import configure
37  configure.petsc_configure(configure_options)
38