ARCHER logo ARCHER banner

The ARCHER Service is now closed and has been superseded by ARCHER2.

  • ARCHER homepage
  • About ARCHER
    • About ARCHER
    • News & Events
    • Calendar
    • Blog Articles
    • Hardware
    • Software
    • Service Policies
    • Service Reports
    • Partners
    • People
    • Media Gallery
  • Get Access
    • Getting Access
    • TA Form and Notes
    • kAU Calculator
    • Cost of Access
  • User Support
    • User Support
    • Helpdesk
    • Frequently Asked Questions
    • ARCHER App
  • Documentation
    • User Guides & Documentation
    • Essential Skills
    • Quick Start Guide
    • ARCHER User Guide
    • ARCHER Best Practice Guide
    • Scientific Software Packages
    • UK Research Data Facility Guide
    • Knights Landing Guide
    • Data Management Guide
    • SAFE User Guide
    • ARCHER Troubleshooting Guide
    • ARCHER White Papers
    • Screencast Videos
  • Service Status
    • Detailed Service Status
    • Maintenance
  • Training
    • Upcoming Courses
    • Online Training
    • Driving Test
    • Course Registration
    • Course Descriptions
    • Virtual Tutorials and Webinars
    • Locations
    • Training personnel
    • Past Course Materials Repository
    • Feedback
  • Community
    • ARCHER Community
    • ARCHER Benchmarks
    • ARCHER KNL Performance Reports
    • Cray CoE for ARCHER
    • Embedded CSE
    • ARCHER Champions
    • ARCHER Scientific Consortia
    • HPC Scientific Advisory Committee
    • ARCHER for Early Career Researchers
  • Industry
    • Information for Industry
  • Outreach
    • Outreach (on EPCC Website)

You are here:

  • ARCHER
  • User Guides & Documentation
  • Essential Skills
  • Quick Start Guide
  • ARCHER User Guide
  • ARCHER Best Practice Guide
  • Scientific Software Packages
  • UK Research Data Facility Guide
  • Knights Landing Guide
  • Data Management Guide
  • SAFE User Guide
  • ARCHER Troubleshooting Guide
  • ARCHER White Papers
  • Screencast Videos

Contact Us

support@archer.ac.uk

Twitter Feed

Tweets by @ARCHER_HPC

ISO 9001 Certified

ISO 27001 Certified

Compiling SLEPc 3.5.4 on ARCHER (Cray XC30)

SLEPc (Scalable Library for Eigenvalue Problem Computations) a library for parallel computation of eigenvalues and eigenvectors. Based on PETSc.

Useful links

  • SLEPc web page
  • PETSc web page

Environment

It is recommended you use SLEPc major and minor versions that correspond to the underlying PETSc installation. e.g. At time of writing, cray-petsc/3.5.2.1 (v3.5.x line) is the default PETSc module on ARCHER. Hence these instructions detail a build of SLEPc 3.5.4.

Certain environment modules must be loaded prior to compilation. Either the Cray, GNU or Intel compilers can be used by swapping to the corresponding PrgEnv. The Intel compiler is used here as an example. Note: Substitute cray-petsc for cray-petsc-complex if doing a complex build.

module swap PrgEnv-cray PrgEnv-intel
module load cray-petsc/3.5.2.1
module load arpack

Compilation

Download the SLEPc source and run the configure script (substitute /path/to/install/dir for the directory you wish to install SLEPc in):

wget http://slepc.upv.es/download/download.php?filename=slepc-3.5.4.tar.gz
tar xf slepc-3.5.4.tar.gz
cd slepc-3.5.4
./configure --prefix=/path/to/install/dir --with-arpack-dir=$ARPACK_DIR --with-arpack-flags=-lparpack_MPI-XC30,-larpack_XC30

Use the suggested make command given as the output at the end of configuration. e.g:

xxx=========================================================================xxx
 Configure stage complete. Now build the SLEPc library with (gnumake build):
   make SLEPC_DIR=$PWD PETSC_DIR=/opt/cray/petsc/3.5.2.1/real/INTEL/140/sandybridge
xxx=========================================================================xxx

After the above make completes, again use the prompted command:

=========================================
gmake[1]: Leaving directory `/home1/z01/z01/dsloanm/slepc_build/slepc-3.5.4'
Now to install the library do:
make SLEPC_DIR=/home/z01/z01/dsloanm/slepc_build/slepc-3.5.4 PETSC_DIR=/opt/cray/petsc/3.5.2.1/real/INTEL/140/sandybridge install
=========================================

Finally, you will be prompted to test the installation with:

====================================
Install complete.
Now to check if the libraries are working do (in current directory):
make SLEPC_DIR=/path/to/install/dir PETSC_DIR=/opt/cray/petsc/3.5.2.1/real/INTEL/140/sandybridge PETSC_ARCH="" test
====================================

With the Intel compiler, tests 10 and 7f may fail with messages similar to:

*******************Error detected during compile or link!*******************
See http://www.mcs.anl.gov/petsc/documentation/faq.html
/home/z01/z01/dsloanm/slepc_build/slepc-3.5.4/src/eps/examples/tests test7f
*********************************************************

These can be safely ignored. They are a result of the test system incorrectly detecting the compiler warning:

icc: command line warning #10120: overriding '-xCORE-AVX-I' with '-msse3'

as an error.

Finally, if you intend to use your installation with pkg-config, you must edit the SLEPc.pc file:

vi /path/to/install/dir/lib/pkgconfig/SLEPc.pc

to remove the PETSc requirement line:

Requires: PETSc = 3.5.2

Failure to do so will result in the PrgEnv breaking with lpthread related errors.

Copyright © Design and Content 2013-2019 EPCC. All rights reserved.

EPSRC NERC EPCC