Sunday, June 7, 2015

qsub learning materials


BYU supercomputing
https://www.youtube.com/watch?v=oM5uIu5YS4c

$ qsub -l nodes=1:ppn=1,pmem=100MB,walltime=5:00,qos=test
#one node, one process, 100MB memory, ... ?

echo hostname $ qsub -l nodes=1:ppn=1,pmem=100MB,walltime=5:00,qos=test

checkjob -v 12345


https://portal.xsede.org/forums/-/message_boards/message/157317
#!/bin/bash
#PBS -A TG-XXXXXXXX
#PBS -l size=192,walltime=01:35:00
cd $PBS_O_WORKDIR
aprun -n 192 ./a.out

Note that you need to enter your own project id after the PBS -A

In the second line, this example is asking for 192 cores and 95 minutes of compute time.

The job then changes to the work directory which already houses your executable which in this example is named a.out.

Finally, this job then launches a.out on 192 cores with the aprun command.

One additional point is that to get this batch file to run, you need to submit it to the queue by using the qsub command:

qsub script.pbs

No comments:

Post a Comment