Skip to content

Commit

Permalink
PETSc on Intel update.
Browse files Browse the repository at this point in the history
Intel finally switched to the new llvm-based compilers.

icx  -> C
icpx -> C++
ifx  -> FORTRAN

Installation instructions are updated accordingly.
  • Loading branch information
sgeotech committed Jan 4, 2024
1 parent cb237fc commit 4814e29
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions doc/installation/Linux/petsc_on_intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,34 @@ 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 \
--download-mumps=1 \
--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:
Expand Down

0 comments on commit 4814e29

Please sign in to comment.