xref: /petsc/config/examples/arch-ci-linux-cuda-double-64idx.py (revision 11c8a98f607708dcee13afcc724c3f833fe66e89)
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    '--download-openmpi=1',
15    '--download-hypre=1',
16    '--download-hwloc=1',
17    'COPTFLAGS=-g -O',
18    'FOPTFLAGS=-g -O',
19    'CXXOPTFLAGS=-g -O',
20    '--with-64-bit-indices=1',
21    '--with-cuda-dir=/usr/local/cuda-12.6',
22    '--with-precision=double',
23    '--with-clanguage=c',
24    # Note: If using nvcc with a host compiler other than the CUDA SDK default for your platform (GCC on Linux, clang
25    # on Mac OS X, MSVC on Windows), you must set -ccbin appropriately in CUDAFLAGS, as in the example for PGI below:
26    # 'CUDAFLAGS=-ccbin pgc++',
27    '--with-strict-petscerrorcode',
28    '--with-coverage',
29  ]
30
31  configure.petsc_configure(configure_options)
32