xref: /petsc/config/examples/arch-ci-linux-hip-cmplx.py (revision e91c04dfc8a52dee1965211bb1cc8e5bf775178f)
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-kernels',
29    # '--download-hypre', # does not support complex on the GPU yet
30    # '--download-mfem',  # requires hypre
31    '--download-magma',
32    '--with-magma-fortran-bindings=0',
33    '--download-metis',
34    '--with-strict-petscerrorcode',
35    '--with-scalar-type=complex',
36    #'--with-coverage',
37  ]
38
39  configure.petsc_configure(configure_options)
40