You are here: Cluster » ForTheImpatient

For the impatient

  1. login to allegro
  2. copy your data, if necessary (allegro home)
  3. submit job
  4. check job


$ ssh allegro

$ MYSELF=$(whoami)
$ mkdir -p ~/myJob/bin 
# - - - on allegro copy data:
$ cp /nfs/home/$MYSELF/mydata/bin/a.out ~/myJob/bin
# OR
$ cp /nfs/storage/$MYSELF/mydata/bin/a.out ~/myJob/bin
# ... copy other data into the cluster ...
$ cat >myJob/bin/submit.sh <<END
#!/bin/bash
#SBATCH -J testjob 
#SBATCH -D /home/$MYSELF
# OR on scratch for more space
#SBATCH -D /data/scratch/$MYSELF
#SBATCH -o testjob.%j.out
#SBATCH --nodes=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=10M
#SBATCH --time=00:30:00
#SBATCH --mail-type=end
#SBATCH --mail-user=<EMAIL ADDRESS> 

hostname
date

~/myJob/bin/a.out
END
$ sbatch ~/myJob/bin/submit.sh

$ squeue

 

-- salzmann - 02 Mar 2012 / Stucki - 01 Jun 2015
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback