xref: /petsc/config/examples/arch-ci-linux-cuda112-omp.py (revision c9e3fce0569ac575a7dd571126b52b2826192edc)
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    '--with-make-test-np=15',
14    'COPTFLAGS=-g -O',
15    'FOPTFLAGS=-g -O',
16    'CXXOPTFLAGS=-g -O',
17    '--with-cuda=1',
18    '--with-openmp',
19    '--with-threadsafety',
20    '--download-kokkos',
21    '--download-kokkos-commit=4.3.00',
22    '--download-kokkos-kernels',
23    '--download-kokkos-kernels-commit=4.3.00',
24    '-ignoreCxxBoundCheck=1', # manually match cxx-dialect for kokkos v4, as kokkos v5 uses cxx-dialect=20
25    '--with-cxx-dialect=17',
26    '--download-umpire',
27    '--download-hypre',
28    '--download-hypre-configure-arguments=--enable-unified-memory',
29    '--with-strict-petscerrorcode',
30    '--download-mpich=1',
31    #'--with-coverage',
32  ]
33
34  configure.petsc_configure(configure_options)
35