Differences between revisions 3 and 7 (spanning 4 versions)
Revision 3 as of 2015-08-13 10:16:11
Size: 1728
Editor: NicoleThomas
Comment:
Revision 7 as of 2015-11-20 10:10:58
Size: 1738
Editor: NicoleThomas
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
== Compile and Execute CLaMS programs on Juropatest == == Compile and Execute CLaMS programs on JURECA ==
Line 29: Line 29:
 {{{
#!/bin/bash -x
 {{{#!highlight ksh
#!/bin/ksh -x

Compile and Execute CLaMS programs on JURECA

  • Load following modules
    module load intel-para netCDF-Fortran/4.4.2
  • Add current directory to PATH in .profile:
    PATH=.:$PATH
    export PATH
  • The libraries used by CLaMS are installed in directory /homec/jicg11/jicg1108
  • The CLaMS programs can be compiled with:
    make [useMPI=true] progname
  • It may be necessary to set the stack size to unlimited:
    ulimit -s unlimited
    Without unsetting this memory limit a memory fault can occur.
  • Create a batch script
       1 #!/bin/ksh -x
       2 #SBATCH --nodes=1
       3 #SBATCH --ntasks=4
       4 #SBATCH --ntasks-per-node=4
       5 #SBATCH --output=mpi-out.%j
       6 #SBATCH --error=mpi-err.%j
       7 #SBATCH --time=00:05:00
       8 #SBATCH --partition=batch
       9 
      10 srun ./traj_mpi
    
  • Submit job
    The job script is submitted using:

    • sbatch <jobscript>
    On success, sbatch writes the job ID to standard out.
  • Other Slurm Commands
    • squeue
      Show status of all jobs.

    • scancel <jobid>
      Cancel a job.

    • scontrol show job <jobid>
      Show detailed information about a pending, running or recently completed job.

    • scontrol update job <jobid> set ...
      Update a pending job.

    • scontrol -h
      Show detailed information about scontrol.

    • sacct -j <jobid>
      Query information about old jobs.

    • sprio
      Show job priorities.

    • smap
      Show distribution of jobs. For a graphical interface users are referred to llview.

    • sinfo
      View information about nodes and partitions.

Jureca/CompileExecute (last edited 2022-10-07 08:38:31 by NicoleThomas)