xref: /petsc/config/examples/arch-ci-linux-cuda-pkgs.py (revision 47c84c5acc69ca2c78267fc7dfb4d7203bd055c8)
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    'COPTFLAGS=-g -O0',
15    'FOPTFLAGS=-g -O0',
16    'CXXOPTFLAGS=-g -O0',
17    '--with-mpiexec-tail='+os.path.realpath("lib/petsc/bin/cuda_use_first_gpu.sh"),
18    '--with-coverage',
19    '--download-suitesparse',
20    '--download-mumps',
21    '--download-scalapack',
22    '--download-chaco',
23    '--download-ctetgen',
24    '--download-exodusii',
25    '--with-exodusii-fortran-bindings=1',
26    '--download-pnetcdf',
27    '--download-generator',
28    '--download-hdf5',
29    '--download-zlib',
30    '--download-metis',
31    '--download-ml',
32    '--download-netcdf',
33    '--download-parmetis',
34    '--download-triangle',
35    '--download-triangle-build-exec',
36    '--download-p4est',
37    '--download-mfem',
38    '--with-cuda',
39    '--with-openmp',
40    '--with-shared-libraries',
41    '--download-magma',
42    '--download-kblas',
43    '--download-h2opus',
44    # '--download-kokkos', # Kokkos-5.0 requires c++20 and cuda-12.2 or above, which break many packages
45    # '--download-kokkos-kernels',
46    '--download-hwloc',
47    '--download-umpire',
48    '--download-hypre',
49    '--download-caliper',
50    '--download-raja',
51    '--download-amgx',
52    '--download-zfp',
53    '--download-butterflypack',
54    '--download-strumpack',
55    '--with-strict-petscerrorcode',
56  ]
57
58  configure.petsc_configure(configure_options)
59