-
Notifications
You must be signed in to change notification settings - Fork 0
Running CHM Train job on Comet
Chris Churas edited this page Jan 31, 2017
·
6 revisions
This page provides an example on how to run CHM Train on the Comet cluster
In the simple version below be sure to replace <ACCOUNT> with your account (found via show_accounts command) and replace <PATH TO IMG> with the full path to chm.img file on Comet. Finally replace <CURDIR> with the directory where job and its outputs will run and cjob.sh script is located.
Connect to Comet and write the following to a cjob.sh script file:
#!/bin/sh\n\n
#SBATCH -D <CURDIR>
#SBATCH -A <ACCOUNT>
#SBATCH -p compute
#SBATCH -t 00:10:00
#SBATCH --nodes=1
#SBATCH --export=SLURM_UMASK=0022
module load singularity/2.2
<PATH TO IMG>/chm.img train ./images ./labels -S 2 -L 1 -m ./mytrainjobmodel
# Be sure to edit cjob.sh and replacing <CURDIR>, <ACCOUNT>, and <PATH TO IMG>
# with correct values
Be sure to also make cjob.sh executable
chmod a+x cjob.sh
Finally submit the job:
sbatch cjob.sh