Differences between revisions 2 and 5 (spanning 3 versions)
Revision 2 as of 2020-07-06 12:36:15
Size: 4318
Editor: semin
Comment:
Revision 5 as of 2020-07-06 12:53:20
Size: 3926
Editor: semin
Comment:
Deletions are marked like this. Additions are marked like this.
Line 39: Line 39:
   * Go to http://trilinos.sandia.gov/download/trilinos-9.0.html and download the latest version of trilinos, ''e.g.''
<pre>trilinos-9.0.2.tar.gz</pre>
Line 42: Line 40:
   * Extract the archive
<pre>tar xzf trilinos-9.0.2.tar.gz</pre>

   * Enter the newly created directory
<pre>cd trilinos-9.0.2</pre>

   * It is recommended to create an empty subdirectory for each build
<pre>mkdir build && cd build </pre>

   * You can compile Trilinos (i) with {{{gcc-4}}} and {{{gfortan}}} or (ii) with {{{gcc-3}}} and {{{g77}}}.
(i). Your default compiler is gcc-4 or you choose for it (recommended).
   * Go to https://github.com/trilinos/Trilinos/releases and download the latest version of trilinos, ''e.g.'' {{{sandia-approved-191218-1689.tar.gz}}}
   * Extract the archive using {{{tar xzf sandia-approved-191218-1689.tar.gz}}}
   * Enter the newly created directory using {{{cd sandia-approved-191218-1689}}}
   * It is recommended to create an empty subdirectory for each build {{{mkdir build && cd build}}}
Line 54: Line 45:
<verbatim>export CC="gcc-4.1.2"    {{{
export CC="gcc-4.1.2"
Line 58: Line 50:
export LDFLAGS="-fPIC"</verbatim> export LDFLAGS="-fPIC"
   }}}
Line 61: Line 54:
   * If both gfortran and g77 are installed, Trilinos need a bit of help to use it and not the possibly also existing g77. For bash shells, this can be done with
<verbatim>
export F77="gfortran-4.1.2"</verbatim>
   * If both gfortran and g77 are installed, Trilinos need a bit of help to use it and not the possibly also existing g77. For bash shells, this can be done with {{{export F77="gfortran-4.1.2"}}}
Line 65: Line 57:
<verbatim>
../configure --prefix=<i>installdir</i> --with-gnumake --enable-anasazi --enable-epetra --enable-teuchos --enable-triutils --enable-didasko --enable-shared --cache-file=config.cache</verbatim>
   {{{
../configure --prefix=installdir --with-gnumake --enable-anasazi --enable-epetra --enable-teuchos --enable-triutils --enable-didasko --enable-shared --cache-file=config.cache
   }}}
Line 70: Line 63:
   * The output of configure should then include: (and not g77 or any compiler you do not want to use, see page 19 in the [http://trilinos.sandia.gov/TrilinosUserGuide.pdf Trilinos user guide] for more flags)
<verbatim>
   * The output of configure should then include: (and not g77 or any compiler you do not want to use, see page 19 in the [[https://trilinos.github.io/pdfs/TrilinosUserGuide.pdf|Trilinos user guide]] for more flags)
   {{{
Line 73: Line 66:
checking whether gfortran-4.1.2 accepts -g... yes</verbatim> checking whether gfortran-4.1.2 accepts -g... yes
   }}}
Line 75: Line 69:
(ii). Your default compiler is gcc-3 or you choose for it.
   * Trilinos has to use g77 (binary).
   * If you use it please supplement to this Wiki documentation.
   * Start building Trilinos via
<pre>make sudo make install </pre>
   *
Go to =$(CONCEPTS_DEV)/eigensolver/anasazi=, execute {{{bjam}}}, the build should now succeed.
   * Complete the environment variable [http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html LD_LIBRARY_PATH] such that the shared libraries will be found, ''e.g.'' for bash shells
<verbatim>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH':<i>installdir</i>/lib</verbatim>

   * Start buildin
g Trilinos via {{{make && sudo make install}}}
   * Go to {{{$(CONCEPTS_DEV)/eigensolver/anasazi}}}, execute {{{bjam}}}, the build should now succeed.
   * Complete the environment variable [[http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html|LD_LIBRARY_PATH]] such that the shared libraries will be found, ''e.g.'' for bash shells {{{export LD_LIBRARY_PATH=$LD_LIBRARY_PATH':installdir/lib}}}.

Installation guide : eigenvalue solver

ARPACK - eigenvalue solver (implicitly restarted Arnoldi method)

Installing packages in Debian, Ubuntu

For the Linux distributions Debian or Ubuntu install the package libarpack2-dev using the packet manager.

Important: Make sure that the library libarpack.so or libarpack.a is installed into /usr/lib or /usr/lib64. Otherwise specify the path ARPACK_PATH in $(CONCEPTS_DEV)/boost-build-modules.jam. Note that the library needs to have exactly the name as given above. If it should have a suffix with the version number for example, you have to create a symbolic link.

Direct installation

  • Download ARPACK from http://www.caam.rice.edu/software/ARPACK, e.g.

    cd /scratch/kersten
    wget http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.gz
    tar -xzf arpack96.tar.gz
    wget http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz
    tar -xzf patch.tar.gz
  • Edit ARmake.inc and change to (paths might have to be adjusted)

    home = /scratch/kersten/ARPACK
    BLASdir = /usr/lib
    LAPACKdir = /usr/lib
    LAPACKLIB = /usr/lib
    BLASLIB = /usr/lib
    FC = gfortran
    FFLAGS = -O3 -funroll-all-loops -ffast-math -fPIC
    MAKE = make

    Also replace g77-3.4.5 with your version of the Fortran compiler. The last two changes may not be necessary on some machines.

  • Call make all.

  • Recompile Concepts using bjam. Now you should read something like Activating support for eigenvalue solver Arpack.

Trilinos - large-scale, complex multi-physics engineering and scientific problems

Concepts uses Trilinos for Anasazi, a versatile eigenvalue solver.

  • Go to https://github.com/trilinos/Trilinos/releases and download the latest version of trilinos, e.g. sandia-approved-191218-1689.tar.gz

  • Extract the archive using tar xzf sandia-approved-191218-1689.tar.gz

  • Enter the newly created directory using cd sandia-approved-191218-1689

  • It is recommended to create an empty subdirectory for each build mkdir build && cd build

  • You should define the following environment variables, here the example of bash shell:
    export CC="gcc-4.1.2"
    export CXX="g++-4.1.2"
    export CXXFLAGS="-fPIC -O3 -fomit-frame-pointer -g"
    export CFLAGS="-fPIC -O3 -fomit-frame-pointer -g"
    export LDFLAGS="-fPIC"
  • Trilinos has to use gfortran (binary) which is often part of the gcc package.
  • If both gfortran and g77 are installed, Trilinos need a bit of help to use it and not the possibly also existing g77. For bash shells, this can be done with export F77="gfortran-4.1.2"

  • Call the configure script (located in the parent directory)
    ../configure --prefix=installdir --with-gnumake --enable-anasazi --enable-epetra --enable-teuchos --enable-triutils --enable-didasko --enable-shared --cache-file=config.cache
  • Without gnumake flag the makefile are really awkward.
  • The other flags are needed to install by Anasazi required packages.
  • The output of configure should then include: (and not g77 or any compiler you do not want to use, see page 19 in the Trilinos user guide for more flags)

    checking whether g++-4.1.2 accepts -g... yes
    checking whether gfortran-4.1.2 accepts -g... yes
  • Start building Trilinos via make && sudo make install

  • Go to $(CONCEPTS_DEV)/eigensolver/anasazi, execute bjam, the build should now succeed.

  • Complete the environment variable LD_LIBRARY_PATH such that the shared libraries will be found, e.g. for bash shells export LD_LIBRARY_PATH=$LD_LIBRARY_PATH':installdir/lib.

numa: Concepts/installationEigen (last edited 2020-07-06 12:53:20 by semin)