Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installing PetSc in your home directory.

PetSc is a complex suite of programs that is best installed in your home directory. This will allow access to all the makefiles corresponding to different downloaded programs that you might add. Due to the size of this program, your default home directory will be insufficient to hold the following installation. Please contact via email cluster-support@tufts.edu to inform us of your PetSc needs and an adjustment to your home directory quota will be requested.

Steps

Command/Task

Comments

0

/cluster/shared/dmarshal/petsc-3.0.0-p8.tar

Where to find distribution

1

PETSC_DIR=/your/build/dir ; export PETSC_DIR

Configure the package to install in /your/build/dir of choice and create environment variable

1a

cd $PETSC_DIR ; cp /cluster/shared/dmarshal/petsc-3.0.0-p8.tar .
tar -xvf petsc-3.0.0-p8.tar

commands

1b

module load openmpi

access to openmpi

1c

./config/configure.py --download-f-blas-lapack=1 --download-hypre=1
--with-batch --download-superlu=1 --download-ml=1
--with-mpi-dir=/usr/mpi/gcc/openmpi-1.2.6/ --with-mpi-shared=1

the install command

1d

bsub ./conftest

Submit the config to one cluster node

1e

./reconfigure.py

Run the reconfig to setup mpi support

2

PETSC_ARCH=linux-gnu-c-debug; export PETSC_ARCH

create environment variables

3

make all

compile and install

4

bsub -Ip -q paralleltest_public -a openmpi -n 2 mpirun.lsf
./your-executable

test mpi job submissions on 2 nodes after you have built something