xref: /petsc/config/examples/arch-ci-linux-cuda-double-64idx.py (revision 11c8a98f607708dcee13afcc724c3f833fe66e89) !
1df3bd252SSatish Balay#!/usr/bin/env python3
21738831dSJunchao Zhang
31738831dSJunchao Zhangimport os
41738831dSJunchao Zhangpetsc_hash_pkgs=os.path.join(os.getenv('HOME'),'petsc-hash-pkgs')
51738831dSJunchao Zhang
61738831dSJunchao Zhangif __name__ == '__main__':
71738831dSJunchao Zhang  import sys
81738831dSJunchao Zhang  import os
91738831dSJunchao Zhang  sys.path.insert(0, os.path.abspath('config'))
101738831dSJunchao Zhang  import configure
111738831dSJunchao Zhang  configure_options = [
121738831dSJunchao Zhang    '--package-prefix-hash='+petsc_hash_pkgs,
131738831dSJunchao Zhang    '--with-make-test-np=2',
142455c87eSSatish Balay    '--download-openmpi=1',
15ea9ee2c1SPierre Jolivet    '--download-hypre=1',
16931c445bSPierre Jolivet    '--download-hwloc=1',
171738831dSJunchao Zhang    'COPTFLAGS=-g -O',
181738831dSJunchao Zhang    'FOPTFLAGS=-g -O',
191738831dSJunchao Zhang    'CXXOPTFLAGS=-g -O',
201738831dSJunchao Zhang    '--with-64-bit-indices=1',
21*e4e5f4d3SSatish Balay    '--with-cuda-dir=/usr/local/cuda-12.6',
221738831dSJunchao Zhang    '--with-precision=double',
231738831dSJunchao Zhang    '--with-clanguage=c',
241738831dSJunchao Zhang    # Note: If using nvcc with a host compiler other than the CUDA SDK default for your platform (GCC on Linux, clang
251738831dSJunchao Zhang    # on Mac OS X, MSVC on Windows), you must set -ccbin appropriately in CUDAFLAGS, as in the example for PGI below:
261738831dSJunchao Zhang    # 'CUDAFLAGS=-ccbin pgc++',
271799f91dSJunchao Zhang    '--with-strict-petscerrorcode',
2841baa1e4SJacob Faibussowitsch    '--with-coverage',
291738831dSJunchao Zhang  ]
301738831dSJunchao Zhang
311738831dSJunchao Zhang  configure.petsc_configure(configure_options)
32