xref: /petsc/config/examples/arch-ci-linux-cuda-latest.py (revision 2ff79c18c26c94ed8cb599682f680f231dca6444)
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=2',
14    'COPTFLAGS=-g -O',
15    'FOPTFLAGS=-g -O',
16    'CXXOPTFLAGS=-g -O',
17    '--with-precision=double',
18    '--with-clanguage=c',
19    '--with-mpi-dir=/software/mpich-43-main-0476502690-cuda130',
20    '--with-cuda-dir=/usr/local/cuda-13.0',
21    '--download-hypre=1',
22    '--download-hypre-commit=b950aec946b3b8b85f2a66ce26f1cb13438ec903', # hypre-3.0 snapshot from Sep 12, 2025
23    '--download-hypre-configure-arguments=--without-umpire',
24    '--download-superlu_dist',
25    '--with-cxx-dialect=17',
26    '--with-strict-petscerrorcode',
27  ]
28
29  configure.petsc_configure(configure_options)
30