xref: /petsc/config/examples/arch-ci-linux-intel.py (revision 6dd63270497ad23dcf16ae500a87ff2b2a0b7474)
1#!/usr/bin/env python3
2
3import os
4petsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
5
6if __name__ == '__main__':
7  import sys
8  import os
9  sys.path.insert(0, os.path.abspath('config'))
10  import configure
11  configure_options = [
12    '--package-prefix-hash='+petsc_hash_pkgs,
13    'CC=icx',
14    'CXX=icpx',
15    'FC=ifx',
16    # Intel compilers enable GCC/clangs equivalent of -ffast-math *by default*. This is
17    # bananas, so we make sure they use the same model as everyone else
18    'COPTFLAGS=-g -O -fp-model=precise',
19    'FOPTFLAGS=-g -O -fp-model=precise',
20    'CXXOPTFLAGS=-g -O -fp-model=precise',
21    '--with-blaslapack-dir='+os.environ['MKLROOT'],
22    '--with-mkl_pardiso-dir='+os.environ['MKLROOT'],
23    '--download-mpich=1',
24    '--download-triangle=1',
25    '--download-triangle-build-exec=1',
26    '--download-ctetgen=1',
27    '--download-tetgen=1',
28    '--download-tetgen-build-exec=1',
29    '--download-p4est=1',
30    '--download-zlib=1',
31    '--download-codipack=1',
32    '--download-adblaslapack=1',
33    '--download-kokkos',
34    '--download-kokkos-cmake-arguments=-DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF', # avoid warnings caused by broken [[deprecated]] in Intel compiler
35    '--download-cmake', # need cmake-3.16+ to build Kokkos
36    '--download-raja',
37    '--with-strict-petscerrorcode',
38  ]
39  configure.petsc_configure(configure_options)
40