xref: /petsc/config/examples/arch-ci-linux-cuda-cmplx.py (revision 749c190bad46ba447444c173d8c7a4080c70750e)
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    #'--with-make-test-np=4', Disabled for now - Open MPI works with 15 so hopefully future MPICH release will fix its GPU memory usage to be lower - similar to Open MPI
15    #'--download-mpich',
16    'COPTFLAGS=-g -O',
17    'FOPTFLAGS=-g -O',
18    'CXXOPTFLAGS=-g -O',
19    '--with-scalar-type=complex',
20    '--with-precision=single',
21    '--with-cuda-dir=/usr/local/cuda-11.7',
22    '--with-mpi-ftn-module=mpi_f08',
23    '--with-strict-petscerrorcode',
24    '--with-coverage',
25  ]
26
27  configure.petsc_configure(configure_options)
28