xref: /petsc/config/examples/arch-alcfci-theta-intel-opt.py (revision 6ee04767cadfff0612518b5db6e53c426a4c5190)
1#!/usr/bin/env python3
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-exodusii-cmake-arguments=-DCMAKE_C_FLAGS:STRING="-DADDC_ -fPIC -g -xMIC-AVX512 -O3"', # workaround ExodusII CMake failure 'cannot automatically determine Fortran mangling'
24  '--with-exodusii-fortran-bindings=1',
25  '--download-metis=1',
26  '--download-parmetis=1',
27  '--with-hdf5=1',
28  '--with-netcdf-dir='+os.environ['CRAY_NETCDF_HDF5PARALLEL_PREFIX'],
29  '--with-pnetcdf-dir='+os.environ['CRAY_PARALLEL_NETCDF_PREFIX'],
30  '--with-zlib=1',
31  '--with-batch=1',
32  '--known-64-bit-blas-indices=0',
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