Difference between revisions of "Proposed template"

From HPC
Jump to: navigation , search
(Interactive)
(Batch Submission)
Line 42: Line 42:
  
 
=== Batch Submission ===
 
=== Batch Submission ===
<pre style="background-color: #C8C8C8; color: black; border: 2px solid blue; font-family: monospace, sans-serif;">
+
<pre style="background-color: #C8C8C8; color: black; border: 2px solid black; font-family: monospace, sans-serif;">
 
#!/bin/bash
 
#!/bin/bash
 
#SBATCH -J MATLAB          # Job name, you can change it to whatever you want
 
#SBATCH -J MATLAB          # Job name, you can change it to whatever you want

Revision as of 14:04, 2 February 2017

Application Details

  • Description: Matlab is a numerical computing environment and programming language developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and data, and implementation of algorithms. A range of toolboxes (see list below) are available to extend functionality.
  • Versions: 2016a, 2017a
  • Module names: matlab/2016a, matlab/2017a
  • License: University of Hull Total Academic Headcount license, available to everyone
  • Forum support: https://www.hpc.hull.ac.uk/forum/viewforum.php?f=14
  • Further information: https://www.mathworks.com/products/matlab.html

Template:Note : news, new versions, upcomming events and if something wrong.

Interactive

Interactive with full graphical interface:

[username@login01 ~]$ interactive
salloc: Granted job allocation 289663
Job ID 289663 connecting to c170, please wait...
Last login: Thu Jan 26 12:59:11 2017 from 10.254.5.246
[username@c170 ~]$ module add matlab/2016a
[username@c170 ~]$ matlab

Interactive with command line only:

[username@c170 ~]$ matlab -nodisplay

                                                    < M A T L A B (R) >
                                          Copyright 1984-2016 The MathWorks, Inc.
                                           R2016a (9.0.0.341360) 64-bit (glnxa64)
                                                     February 11, 2016


To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.


        Academic License

>>


Batch Submission

#!/bin/bash
#SBATCH -J MATLAB           # Job name, you can change it to whatever you want
#SBATCH -N 1                # Number of nodes (for Matlab should be always one)
#SBATCH -o %N.%j.out        # Standard output will be written here
#SBATCH -e %N.%j.err        # Standard error will be written here
#SBATCH -p compute          # Slurm partition, where you want the job to be queued 
#SBATCH -t 0-01:30          # Your expected run-time format in D-HH:MM 
#SBATCH --exclusive
 
module purge
module add matlab/2016a
 
matlab -nodisplay -nojvm -nodesktop -nosplash -r my_matlab_m_file

This submission script can be found at /path/to/sample/script Matlab

[username@login01 ~]$ sbatch MATLABtest.job
Submitted batch job 289522