xref: /petsc/config/examples/arch-alcfci-theta-intel-opt.py (revision ccb4e88a40f0b86eaeca07ff64c64e4de2fae686)
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-exodusii-cmake-arguments=-DCMAKE_C_FLAGS:STRING="-DADDC_ -fPIC -g -xMIC-AVX512 -O3"', # workaround exodusii cmake failure 'cannot automatically determine Fortran mangling'
24  '--download-metis=1',
25  '--download-parmetis=1',
26  '--with-hdf5=1',
27  '--with-netcdf-dir='+os.environ['CRAY_NETCDF_HDF5PARALLEL_PREFIX'],
28  '--with-pnetcdf-dir='+os.environ['CRAY_PARALLEL_NETCDF_PREFIX'],
29  '--with-zlib=1',
30  '--with-batch=1',
31  '--known-64-bit-blas-indices=0',
32]
33
34if __name__ == '__main__':
35  import sys,os
36  sys.path.insert(0,os.path.abspath('config'))
37  import configure
38  configure.petsc_configure(configure_options)
39