In order to run jobs on NERSC's Hopper cluster you need to have job script to submit, (you can download a sample from here).
It looks like this:
#PBS -q debug
#PBS -l mppwidth=24
#PBS -l walltime=00:30:00
#PBS -N Job1
#PBS -e $PBS_JOBID.err
#PBS -o $PBS_JOBID.out
#PBS -V
cd $PBS_O_WORKDIR
echo "Changing to workdir $PBS_O_WORKDIR"
echo "listing workdir contents"
ls -ltr
aprun -n 24 ./nrlmol_exe > log.txt
The #PBS options you need to set are:
The line that executes the program (also called binary file) is:
aprun -n 24 ./nrlmol.exe > log.txt
Make sure that the -n number is the same as the number given in the mppwidth option given a few lines before.
You may notive that the executable file name here is nrlmol.exe. It doesn't necessarily have to be, you may change it if you want.
qsub job_hopper.txt
qstat -u username
qdel jobnumber
Don't forget to include your username when issuing qstat, otherwise you get the status of everyone's jobs.