Apc-cluster

Alternate between Arago and APC cluster


Preparation before calculating on APC cluster

Change your working directory

As you access the same "/workdir" and "/home" from two different clusters, you need to distinguish your working directory at the new APC cluster from the old Arago cluster.

  • Recommandations

1. move all your data under "/workdir/my_dir" related to your calculate to a new sub-directory /workdir/my_dir/arago"

2. create a new working directory dedicated for APC cluster "/workdir/my_dir/apc"

3. copy your job "myjob.sh" to "/workdir/my_dir/apc/myjob_v2.sh", modify the job name and working directory in myjob_v2.sh

Recompile your binaries and softwares

You need to recompile your jobs binaries under the new working directory.

For all the softwares installed by yourself you also have to recompile and install them under the new directory dedicated to APC cluster.

Check Available Software to find information about compliers.

Note :

Keep data under two different sub-directories can help us to avoid mistakes when using different cluster.

However these recommandations should be adapted to your needs.

Just pay attention that you don't replace your actual data (binaries, softs, jobs) by mistake, since there is no backup of "/workdir".

Modify the submission queue of your job

If in your job.sh you have indicated to use the queue "quiet", you need to modify it to "furious" as the queue of your new job on APC cluster.


Alternate between Arago and APC cluster

  • Submit jobs on Arago cluster
$ ssh login@apcclwn12
$ qsub -q quiet myjob.sh
$ mpirun -mca plm rsh my_exe
  • Submit jobs on APC cluster
$ ssh login@apcclm
$ qsub -q furious myjob_v2.sh 
$ mpirun my_exe
  • You can modify your ".bashrc" file to switch $PATH due to the cluster on which you calculate

ex :

FILE="/etc/centos-release"

if [ -f $FILE ];
then
   PATH=...
   echo "you are working on APC cluster"
else
   PATH=...
   echo "you are working on Arago cluster"
fi