xref: /petsc/config/examples/arch-ci-linux-hip-double.py (revision c9e3fce0569ac575a7dd571126b52b2826192edc)
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-mpi-dir=/home/users/balay/soft/instinct/gcc-10.2.0/mpich-4.1',
14    #'--with-blaslapack-dir=/home/users/balay/soft/instinct/gcc-10.2.0/fblaslapack',
15    '--with-make-np=24',
16    '--with-make-test-np=8',
17    '--with-hipc=/opt/rocm-5.4.3/bin/hipcc',
18    '--with-hip-dir=/opt/rocm-5.4.3',
19    'COPTFLAGS=-g -O',
20    'FOPTFLAGS=-g -O',
21    'CXXOPTFLAGS=-g -O',
22    'HIPOPTFLAGS=-g -O',
23    '--with-cuda=0',
24    '--with-hip=1',
25    '--with-precision=double',
26    '--with-clanguage=c',
27    '--download-kokkos',
28    '--download-kokkos-commit=4.7.01', #TODO: Update to Kokkos-5.0 with rocm-6.2+
29    '--download-kokkos-kernels',
30    '--download-kokkos-kernels-commit=4.7.01',
31    '--download-umpire',
32    '--download-hypre',
33    '--download-magma',
34    '--download-mfem',
35    '--download-metis',
36    '--with-strict-petscerrorcode',
37    #'--with-coverage',
38  ]
39
40  configure.petsc_configure(configure_options)
41