xref: /petsc/config/examples/arch-ci-linux-hip-double.py (revision ed5e4e85792117e4bf875eb7efb50a9b8564ac26)
1#!/usr/bin/python
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/mpich-3.4.2',
14    '--with-blaslapack-dir=/home/users/balay/soft/fblaslapack',
15    'COPTFLAGS=-g -O',
16    'FOPTFLAGS=-g -O',
17    'CXXOPTFLAGS=-g -O',
18    '--with-cuda=0',
19    '--with-hip=1',
20    '--with-hipc=/opt/rocm/bin/hipcc',
21    '--with-hip-dir=/opt/rocm',
22    '--with-precision=double',
23    '--with-clanguage=c',
24    '--download-kokkos',
25    '--download-kokkos-kernels',
26    #'--download-hypre',
27    #'--download-hypre-configure-arguments=--enable-unified-memory',
28    #'--with-hypre-gpuarch=gfx908',
29    '--download-magma',
30    '--with-magma-fortran-bindings=0',
31    '--with-magma-gputarget=gfx908',
32  ]
33
34  configure.petsc_configure(configure_options)
35