xref: /petsc/config/examples/arch-ci-linux-hip-double.py (revision df4cd43f92eaa320656440c40edb1046daee8f75)
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-configure-arguments=--enable-unified-memory',
30    '--download-magma',
31    '--with-magma-fortran-bindings=0',
32    '--with-strict-petscerrorcode',
33  ]
34
35  configure.petsc_configure(configure_options)
36