1#!/usr/bin/python3 2if __name__ == '__main__': 3 import sys 4 import os 5 sys.path.insert(0, os.path.abspath('config')) 6 import configure 7 configure_options = [ 8 '--download-kokkos', 9 '--download-kokkos-kernels', 10 '--with-cuda=1', 11 '--with-debugging=0', 12 # Need to use g++ as host compiler for NVCC (tested with 7.5.0) to compile kokkos lambdas 13 'CUDAFLAGS=-ccbin g++', 14 # Uses NVC (PGI) compilers for MPI wrappers 15 'CFLAGS=-g -nomp -tp p7-64', 16 'CXXFLAGS=-g -nomp -tp p7-64', 17 'FFLAGS=-g -nomp -tp p7-64', 18 'PETSC_ARCH=arch-nvhpc', 19 ] 20 configure.petsc_configure(configure_options) 21