xref: /petsc/config/examples/arch-alcfci-theta-intel-opt.py (revision 08a7d4d75bc0e4ebc7e54ac6a1bfe7dfc9b4e276)
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/opt/intel/compilers_and_libraries_2018.0.128/linux/mkl/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=/opt/cray/pe/netcdf/4.6.3.1/INTEL/18.0/',
27  '--with-pnetcdf-dir=/opt/cray/pe/parallel-netcdf/1.11.1.0/INTEL/18.0',
28  '--with-zlib=1',
29  '--with-batch=1',
30  '--known-mpi-long-double=1',
31  '--known-mpi-int64_t=1',
32  '--known-mpi-c-double-complex=1',
33  '--known-64-bit-blas-indices=0',
34]
35
36if __name__ == '__main__':
37  import sys,os
38  sys.path.insert(0,os.path.abspath('config'))
39  import configure
40  configure.petsc_configure(configure_options)
41