Navigation
|
Log in to Jed
Then, prepare batch file. Example the name of batchfile "nek2.run" #!/bin/bash #SBATCH --mail-user=eunok.yim@epfl.ch #SBATCH --mail-type=ALL #SBATCH --job-name="test" #SBATCH --mem 4000 #SBATCH --chdir /home/yim/ #SBATCH --ntasks-per-node 4 #SBATCH --cpus-per-task 1 #SBATCH --time 1:0:0 #SBATCH -A head ## This part can be removed if you are attached to only one unit.
module purge module load gcc module load openmpi module load python
echo $1 > SESSION.NAME echo `pwd`'/' >> SESSION.NAME
echo "SESSION.NAME --------------------------" cat SESSION.NAME echo "---------------------------------------"
srun ./nek5000 $1 > output.txt
Important!! Nek5000 in Jed: choose lpmin correctly in the SIZE file. (~7700 elements per processor) Example: For a problem with total no. elements 300000, you need to put lpmin = ceil(300000/7700) = 40
The name of your run file should be there… sbatch nek2.run nameofrun
|