xref: /petsc/config/examples/arch-ci-linux-cuda112-omp.py (revision ae51ba108530e1a8d2aeb8bc3771a24c2fcd801e)
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-kernels',
22    '--download-kokkos-commit=36f65d03f48e504e63ad124f7f5cf74dd46af130', # release-candidate-4.0.0, Feb. 7 2023.  Remove it once we upgrade the default Kokkos version to 4.0
23    '--download-kokkos-kernels-commit=697c4169f73ec9b316a30d7e0060013c86672d59', # release-candidate-4.0.0, Feb. 7 2023.
24    '--with-strict-petscerrorcode',
25  ]
26
27  configure.petsc_configure(configure_options)
28