Overture Installation on LCRC Clusters

These are the instructions for installing Overture on Fusion and Blues clusters at the LCRC. These are adapted from the Installation Instructions provided by Overture to suit the specific environment of the LCRC clusters.

Serial Installation

Make sure the following exists in the environment: +gcc-4.4

Motif

Not required
On Fusion, the required files are available
/usr/lib/libXm.so
/usr/lib/libXm.a
On Blues, the required files are available
/usr/lib64/libXm.so
/usr/lib64/libXm.a

Mesa/OpenGL

Already installed.

HDF5

  • wget http://overtureframework.org/software/hdf5-1.8.8.tar.gz && gunzip hdf5-1.8.8.tar.gz && tar xvf hdf5-1.8.8.tar
  • cd hdf5-1.8.8
  • CC=gcc ./configure --prefix=$PWD
  • make && make install && make check
  • cd ../
  • A++

  • wget http://overtureframework.org/software/AP-0.8.0.tar.gz && gunzip AP-0.8.0.tar.gz && tar xvf AP-0.8.0.tar
  • cd A++P++-0.8.0/
  • ./configure --enable-SHARED_LIBS --prefix=$PWD
  • make && make install && make check
  • cd ../
  • PETSc

    Skipping this since its an optional dependency to solve the system of equations for the incompressible Navier-Stokes.

    Overture

  • wget http://overtureframework.org/software/Overture.v25.tar.gz && gunzip Overture.v25.tar.gz && tar xvf Overture.v25.tar
  • wget http://overtureframework.org/software/cg.v25.tar.gz && gunzip cg.v25.tar.gz && tar xvf cg.v25.tar
  • Set up environment variables:-

  • export XLIBS=/usr
  • export OpenGL=/usr
  • export MOTIF=/usr
  • export HDF=$PWD/hdf5-1.8.8
  • export APlusPlus=$PWD/A++P++-0.8.0/A++/install
  • export Overture=$PWD/Overture.v25
  • export CG=$PWD/cg.v25
  • export CGBUILDPREFIX=$CG
  • export LAPACK=/usr
  • export LD_LIBRARY_PATH=${MOTIF}/lib:${XLIBS}/lib:${HDF}/lib:${OpenGL}/lib:${Overture}/lib:${APlusPlus}/lib
  • Compilation:

  • cd Overture.v25/
  • ./configure CC=g++ cc=gcc FC=gfortran
  • make
  • ./check.p
  • cd ../
  • CG
  • cd cg.v25
  • make && make check
  • cd ../
  • Clean up

  • rm *.tar
  • Parallel Installation

    Overture needs MPI libraries compiled with the -fPIC flag. In the ".soft" file, add
    +mvapich2-1.4-gcc-4.4.2-shared
    +gcc-4.4
    and then run "resoft".

    Motif

    Same as serial

    Mesa/OpenGL

    Same as serial

    HDF5

  • wget http://overtureframework.org/software/hdf5-1.8.8.tar.gz && gunzip hdf5-1.8.8.tar.gz && tar xvf hdf5-1.8.8.tar
  • cd hdf5-1.8.8
  • CC=mpicc ./configure --prefix=$PWD
  • make && make install && make check #(make check may fail since all this is happening on a login node.)
  • cd ../
  • A++

    Same as serial

    P++

  • cd A++P++-0.8.0/
  • ./configure --enable-PXX --prefix=$PWD --enable-SHARED_LIBS --with-mpi-include=-I/soft/mvapich2/1.4-gcc-4.4.2-shared/include --with-mpi-lib-dirs="-Wl,-rpath,/soft/mvapich2/1.4-gcc-4.4.2-shared/lib -L/soft/mvapich2/1.4-gcc-4.4.2-shared/lib -L/var/tmp/pvfs-2.8.2/usr/lib -L/usr/lib64" --with-mpi-libs="-lmpich -lpthread -lrdmacm -libverbs -libumad -lpthread -lrdmacm -libverbs -libumad -lpvfs2 -lcrypto -lssl -lpthread -libverbs -lrt" --disable-mpirun-check --without-PADRE
    (The values for --with-mpi-include, --with-mpi-lib-dirs, --with-mpi-libs can be found from running the command "mpicc -show")
  • make && make install && make check #(make check may fail since all this is happening on a login node.)
  • cd ../
  • PETSc

    Same as serial

    Overture

  • wget http://overtureframework.org/software/Overture.v25.tar.gz && gunzip Overture.v25.tar.gz && tar xvf Overture.v25.tar
  • wget http://overtureframework.org/software/cg.v25.tar.gz && gunzip cg.v25.tar.gz && tar xvf cg.v25.tar
  • Set up environment variables:-

  • export XLIBS=/usr
  • export OpenGL=/usr
  • export MOTIF=/usr
  • export HDF=$PWD/hdf5-1.8.8
  • export APlusPlus=$PWD/A++P++-0.8.0/P++/install #(Yes, APlusPlus needs to be set to P++ install directory)
  • export PPlusPlus=$PWD/A++P++-0.8.0/P++/install
  • export Overture=$PWD/Overture.v25
  • export CG=$PWD/cg.v25
  • export CGBUILDPREFIX=$CG
  • export LAPACK=/usr
  • export LD_LIBRARY_PATH=${MOTIF}/lib:${XLIBS}/lib:${HDF}/lib:${OpenGL}/lib:${Overture}/lib:${APlusPlus}/lib:${PPlusPlus}/lib
  • Compilation:

  • cd Overture.v25/
  • Edit the configure file - Find the following lines (Line number 515 to 523)
      elsif( $arg =~ /CC=(.*)/ )
      {
          $CC = $1; $CC =~ s/ //g;
          if( $CC eq "kcc" ){ $CC = "KCC"; }
      }
      elsif( $arg =~ /cc=(.*)/ )
      {
          $cc = $1; $cc =~ s/ //g;
      }
      and replace with
      elsif( $arg =~ /^CC=(.*)/ )
      {
          $CC = $1; $CC =~ s/ //g;
          if( $CC eq "kcc" ){ $CC = "KCC"; }
      }
      elsif( $arg =~ /^cc=(.*)/ )
      {
          $cc = $1; $cc =~ s/ //g;
      }
      Refer: Overture mailing list post
  • ./configure parallel CC=mpicxx cc=mpicc FC=mpif90 bCC=g++ bcc=gcc bFC=gfortran
  • make
  • ./check.p
  • cd ../
  • CG

    Same as serial