What is Octave?
GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation. Octave is normally used through its interactive command line interface, but it can also be used to write non-interactive programs. The Octave language is quite similar to MATLAB so that most programs are easily portable.
To use Octave, please use the following commands or refer to the sample PBS scripts:
|HPC2015||module load octave/gcc|
Sample examples with PBS script for running Octave are available at /share1/octave/sample.
- Running serial OCTAVE jobStep 1: Prepare a “OCTAVE ready” m-file. e.g. test.m
disp 'Hello World' exit
Step 2: Prepare a PBS script. Sample pbs script pbs-octave.cmd:
#!/bin/sh #PBS –N test_octave #PBS -l walltime=00:10:00 #PBS -l nodes=1:ppn=1 #PBS -j oe octave -q test.m # end of example file
Step 3: Submit the PBS script.
Official documentation can be obtained from the OCTAVE website