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 '--download-openmpi', 26 '--download-ucx', 27 '--download-ucx-configure-arguments=CFLAGS=-O2', # to avoid some 'varialbe may be used uninitialized' errors 28 '--with-precision=double', 29 '--with-clanguage=c', 30 '--download-kokkos', 31 '--download-kokkos-commit=4.7.01', #TODO: Update to Kokkos-5.0 with rocm-6.2+ 32 '--download-kokkos-kernels', 33 '--download-kokkos-kernels-commit=4.7.01', 34 # '--download-hypre', # does not support complex on the GPU yet 35 # '--download-mfem', # requires hypre 36 '--download-magma', 37 '--download-metis', 38 '--with-strict-petscerrorcode', 39 '--with-scalar-type=complex', 40 #'--with-coverage', 41 ] 42 43 configure.petsc_configure(configure_options) 44