Minimum description of the job script

Example of the job script

#!/bin/sh
#SBATCH -J  CO
#SBATCH -p  cmdinteractive
#SBATCH -N  1
#SBATCH -n  4

# Load the modules

module purge
module load oneapi_compiler/2023.0.0
module load oneapi_mkl/2023.0.0
module load oneapi_mpi/2023.0.0

# Set this variable to use with OpenAPI and IntelMPI

export FI_PROVIDER=psm3

# Set the STATE executable

ln -fs ${HOME}/STATE/src/state/src/STATE .

# Set the pseudopotential files

ln -fs ../gncpp/pot.C_pbe1
ln -fs ../gncpp/pot.O_pbe1

# Set the input/output files

INPUT_FILE=nfinp_scf
OUTPUT_FILE=nfout_scf

# Run!

ulimit -s unlimited

srun ./STATE < ${INPUT_FILE} > ${OUTPUT_FILE}

Body

# Load the modules

module purge
module load oneapi_compiler/2023.0.0
module load oneapi_mkl/2023.0.0
module load oneapi_mpi/2023.0.0

# Set this variable to use with OpenAPI and IntelMPI

export FI_PROVIDER=psm3

# Set the STATE executable

ln -fs ${HOME}/STATE/src/state/src/STATE .

# Set the pseudopotential files

ln -fs ../gncpp/pot.C_pbe1
ln -fs ../gncpp/pot.O_pbe1

# Set the input/output files

INPUT_FILE=nfinp_scf
OUTPUT_FILE=nfout_scf

# Run!

ulimit -s unlimited

srun ./STATE < ${INPUT_FILE} > ${OUTPUT_FILE}
  • Modules

# Load the modules

module purge
module load oneapi_compiler/2023.0.0
module load oneapi_mkl/2023.0.0
module load oneapi_mpi/2023.0.0

Please do not change them, unless you build STATE with different modules.

  • Platform specific variable

# Set this variable to use with OpenAPI and IntelMPI

export FI_PROVIDER=psm3

This variable is necessary to run a program properly with the above modules. Please also do not change it.

  • STATE executable

# Set the STATE executable

ln -fs ${HOME}/STATE/src/state/src/STATE .

Please do not change this line, unless you don’t change the name of the STATE executable

  • Pseudopotentials

# Set the pseudopotential files

ln -fs ../gncpp/pot.C_pbe1
ln -fs ../gncpp/pot.O_pbe1

Please choose all the pseudopotentials you need to use and write here (change C_pbe1 and O_pbe1, and add more lines if necessary)

  • Input/output files

# Set the input/output files

INPUT_FILE=nfinp_scf
OUTPUT_FILE=nfout_scf
  • Execution

# Run!

ulimit -s unlimited

srun ./STATE < ${INPUT_FILE} > ${OUTPUT_FILE}

Please change the input (nfinp_scf) and output (nfout_scf) file names as necessary.

You don’t have to change the following lines in the job script.

Minimum list of submission commands

  • Submission of a job

$ sbatch [job script]
  • Check the job status

$ squeue
  • Cancel the job

$ scancel [Job ID]

Use squeue to know your JOB ID

Available resources on ohtaka

Partition (queue)

Min. # of nodes

Max. # of nodes

Max. hours

cmdinteractive

1

8

24 hours

cmd1cpu

1

1

24 hours

cmd16cpu

2

16

24 hours

Warning

Max. number of nodes allocated for the CMD workshop is 16. If you used too may cores, other users in the course have to wait until their reqired number nodes are available. Please choose the number of cores with care. In the begininng, it is better to play within one node (128 cores) to get accustomed to use many cores/nodes.