#!/bin/bash # # Before running this script load the following modules: # # Download the latest varsion of petsc into "BUILD_DIR" # command line load script "ssdc_with_64_bit_int" # (module add intel_oneAPI_2022.1) # (module add mpt-2.25) # ##### Begin Build Script ##### BUILD_DIR=/u/mhcarpen/scratch2/mhcarpen/OpenSourceLib_2024/petsc_oneAPI_2023.1_64bit INSTALLDIR=/u/mhcarpen/scratch2/mhcarpen/OpenSourceLib_2024/petsc_oneAPI_2023.1_64bit/petsc-3.21.1-install #wget https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.21.1.tar.gz -P ${BUILD_DIR} tar -xvf ${BUILD_DIR}/petsc-3.21.1.tar.gz -C ${BUILD_DIR} cd ${BUILD_DIR}/petsc-3.21.1 #export MPICC_CC=icc #export MPICXX_CXX=icpc ./configure --prefix=${INSTALLDIR} \ --with-64-bit-integers \ COPTFLAGS="-O2" \ CXXOPTFLAGS="-O2" \ FOPTFLAGS="-O2" \ --download-make \ --download-cmake \ --download-scalapack=yes \ --download-hypre=yes \ --download-metis=yes \ --download-parmetis=yes \ --download-amd=yes \ --download-blacs=yes \ --download-fblaslapack=yes \ --with-debugging=1 \ --with-mpi-dir=/opt/hpe/hpc/mpt/mpt-2.25 make PETSC_DIR=${BUILD_DIR}/petsc-3.21.1 all make PETSC_DIR=${BUILD_DIR}/petsc-3.21.1 install # --with-64-bit-integers \ # --with-64-bit-indices \ # does strange things # --with-fc=/usr/local/pkgs-modules/intel_oneAPI_2024/compiler/latest/bin/ifx \ #./configure --prefix=${INSTALLDIR} \ # --with-64-bit-indices \ # --with-debugging=0 \ # --with-shared \ # --with-cc=mpicc \ # --with-fc=mpif90 \ # --with-cxx=mpicxx \ # --with-blaslapack-dir=$MKLROOT/lib/intel64 \ # --with-scalapack-include=$MKLROOT/include \ # --with-scalapack-lib='$MKLROOT/lib/intel64/libmkl_scalapack_lp64.so $MKLROOT/lib/intel64//libmkl_blacs_sgimpt_lp64.so' \ # --with-cpp=/usr/bin/cpp \ # --with-gnu-compilers=0 \ # --with-vendor-compilers=intel \ # --with-64-bit-integers\ # COPTFLAGS='-g -Ofast' \ # CXXOPTFLAGS='-g -Ofast' \ # FOPTFLAGS='-g -Ofast' \ # --download-parmetis=yes --download-metis=yes \ # --download-hypre=yes \ # --download-mumps=yes \ # --download-make=yes