Link the ARPACK numerical library to your Fortran program on Big Red II or Karst at IU

ARPACK is a collection of Fortran 77 subroutines for solving large eigenvalue problems. For more, see the ARPACK Users' Guide. Following are instructions for linking the ARPACK library to your Fortran program on Big Red II or Karst at Indiana University.

  1. Add the ARPACK library to your user environment:
    • On Big Red II:
      1. Make sure the Cray programming environment module (PrgEnv-cray) is loaded. To check, on the command line, enter module list, and review the output. If another programming environment module (for example, PrgEnv-gnu) is loaded, use the module switch command; for example, on the command-line, enter:
        module switch PrgEnv-gnu PrgEnv-cray
        
      2. Load the ARPACK module; on the command line, enter:
        module load arpack
        
    • On Karst:
      1. Make sure the Intel Compiler Suite module is loaded. To check, on the command line, enter module list, and review the output. If the intel/[version] module is not listed, add it with the module load command; on the command line, enter:
        module load intel
        
      2. Load the ARPACK module; on the command line, enter:
        module load arpack
        

    To make permanent changes to your environment, edit your ~/.modules file. For more, see Use a .modules file in your home directory to save your user environment on an IU research supercomputer.

  2. To link the ARPACK library to your Fortran program, add the -L and -l options to your compile command as shown in the following examples. The -L option adds the specified directory path to the library search list and should be placed before the -l option to which it applies.
    • On Big Red II: To compile myprogram.f and link it with the ARPACK library, on the command line, enter:
      ftn myprogram.f -L/N/soft/cle4/arpack/1996/lib -larpack -o myprogram
      
    • On Karst: To compile myprogram.f and link it with the ARPACK library, on the command line, enter:
      ifort myprogram.f -L/N/soft/rhel6/2.1/lib -larpack -o myprogram
      

If you need help or have questions regarding the use of ARPACK on IU's research supercomputers, contact the UITS Research Applications and Deep Learning team.

Support for IU research computing systems, software, and services is provided by the Research Technologies division of UITS. To ask a question or get help, contact UITS Research Technologies.

This is document bdnq in the Knowledge Base.
Last modified on 2019-03-28 12:59:17.

Contact us

For help or to comment, email the UITS Support Center.