xref: /petsc/config/examples/arch-ci-linux-cuda-uni-pkgs.py (revision df4cd43f92eaa320656440c40edb1046daee8f75)
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=20',
14    '--with-mpi=0',
15    '--with-cc=gcc',
16    '--with-cxx=g++',
17    '--with-fc=gfortran',
18    '--with-cuda=1',
19    '--download-hdf5',
20    '--download-metis',
21    '--download-superlu',
22    '--download-mumps',
23    '--with-mumps-serial',
24    '--download-p4est=1',
25    '--with-zlib=1',
26    # stress-test h2opus: mpiuni and CPU code while PETSc has GPU support
27    '--download-h2opus',
28    '--with-cxx-dialect=14',
29    '--with-shared-libraries=1',
30    '--download-slepc',
31    '--download-hpddm',
32    '--download-fftw',
33    '--with-strict-petscerrorcode',
34  ]
35  configure.petsc_configure(configure_options)
36
37