xref: /petsc/config/examples/arch-ci-linux-kokkos-cuda.py (revision bcd4bb4a4158aa96f212e9537e87b40407faf83e)
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=3',
14    '--with-debugging=0',
15    '--with-cuda',
16    '--with-openmp',
17    '--with-shared-libraries',
18    '--download-kokkos', # Kokkos-5.0 requires c++20 and cuda-12.2 or above
19    '--download-kokkos-kernels',
20    '--with-strict-petscerrorcode',
21  ]
22
23  configure.petsc_configure(configure_options)
24