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=/opt/intel/inteloneapi/mpi/latest', 14 'COPTFLAGS=-g -O', 15 'FOPTFLAGS=-g -O', 16 'CXXOPTFLAGS=-g -O', 17 '--with-cuda=0', 18 '--with-sycl=1', 19 '--with-syclcxx=dpcpp', 20 '--with-sycl-dir=/opt/intel/inteloneapi/compiler/latest/linux', 21 '--with-precision=double', 22 '--with-clanguage=c', 23 ] 24 25 configure.petsc_configure(configure_options) 26