From 4814e2980b0a2e8fad69b23fc48abdd557516f13 Mon Sep 17 00:00:00 2001 From: sgeotech Date: Thu, 4 Jan 2024 16:32:41 +0100 Subject: [PATCH] PETSc on Intel update. Intel finally switched to the new llvm-based compilers. icx -> C icpx -> C++ ifx -> FORTRAN Installation instructions are updated accordingly. --- doc/installation/Linux/petsc_on_intel.txt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/doc/installation/Linux/petsc_on_intel.txt b/doc/installation/Linux/petsc_on_intel.txt index 4de9e9f2..4ba6c226 100644 --- a/doc/installation/Linux/petsc_on_intel.txt +++ b/doc/installation/Linux/petsc_on_intel.txt @@ -32,27 +32,27 @@ sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main" sudo apt install intel-hpckit -add ./opt/intel/oneapi/setvars.sh to .bashrc +add . /opt/intel/oneapi/setvars.sh to .bashrc ------------------------------------------------------------------ PETSc optimized example configuration ------------------------------------------------------------------ ./configure \ ---prefix=/home/data/software/petsc/petsc-3.18.4-opt \ +--prefix=/home/data/software/petsc/petsc-3.19.6-opt \ --with-mkl_pardiso-dir=$MKLROOT/lib/intel64 \ --with-mkl_cpardiso-dir=$MKLROOT/lib/intel64 \ --with-blaslapack-dir=$MKLROOT/lib/intel64 \ --with-scalapack-lib="-L=$MKLROOT/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64" \ ---COPTFLAGS="-O2 -diag-disable=10441" \ ---FOPTFLAGS="-O2" \ ---CXXOPTFLAGS="-O2 -diag-disable=10441" \ +--COPTFLAGS="-O2 -xCORE-AVX2" \ +--FOPTFLAGS="-O2 -xCORE-AVX2" \ +--CXXOPTFLAGS="-O2 -xCORE-AVX2" \ --with-debugging=0 \ --with-large-file-io=1 \ --with-c++-support=1 \ ---with-cc=mpiicc \ ---with-cxx="mpiicpc" \ ---with-fc=mpiifort \ +--with-cc=mpiicx \ +--with-cxx="mpiicpx" \ +--with-fc=mpiifx \ --download-metis=1 \ --download-parmetis=1 \ --download-ptscotch=1 \ @@ -60,9 +60,6 @@ PETSc optimized example configuration --download-superlu_dist=1 \ --with-clean -NOTE: -diag-disable=10441 disables deprecated compiler warning -Remove this in the future versions - ------------------------------------------------------------------ Enable optimized Sparse BLAS kernels: