xref: /petsc/config/examples/arch-ci-linux-hip-double.py (revision 030f984af8d8bb4c203755d35bded3c05b3d83ce)
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-cc=/scratch/soft/mpich/bin/mpicc',
14    '--with-cxx=/scratch/soft/mpich/bin/mpicxx',
15    '--with-fc=/scratch/soft/mpich/bin/mpif90',
16    'LDFLAGS=-L/opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7/lib -lquadmath',
17    'COPTFLAGS=-g -O',
18    'FOPTFLAGS=-g -O',
19    'CXXOPTFLAGS=-g -O',
20    '--with-cuda=0',
21    '--with-hip=1',
22    '--with-hipc=hipcc',
23    '--with-hip-dir=/opt/rocm',
24    '--with-precision=double',
25    '--with-clanguage=c',
26    '--download-fblaslapack=1',
27    '--download-magma=1',
28    '--with-magma-fortran-bindings=0',
29    '--with-magma-gputarget=gfx906',
30  ]
31
32  configure.petsc_configure(configure_options)
33