Octave is a high-level language, primarily intended for numerical computations. It provides a convenient command line interface for solving linear and nonlinear problems numerically, and for performing other numerical experiments using a language that is mostly compatible with Matlab. It may also be used as a batch-oriented language.
Octave has extensive tools for solving common numerical linear algebra problems, finding the roots of nonlinear equations, integrating ordinary functions, manipulating polynomials, and integrating ordinary differential and differential-algebraic equations. It is easily extensible and customizable via user-defined functions written in Octave's own language, or using dynamically loaded modules written in C++, C, Fortran, or other languages.
Octave is available to all OSC users without restriction.
The following versions of Octave are available on OSC clusters:
Version | Glenn | Oakley |
---|---|---|
2.1.73 | X | |
2.9.12 | X | |
3.6.1 | X | |
3.6.4 | X |
To initialize either cluster for the use of Octave, run the following command:
module load octave
To run Octave, simply run the following command:
octave
The following example batch script will an octave code file, mycode.o
, via the batch processing system. The script requests one full node of cores on Oakley and 1 hour of walltime.
#PBS -N AppNameJob #PBS -l nodes=1:ppn=12 #PBS -l walltime=01:00:00 #PBS -l software=appname module load octave cd $PBS_O_WORKDIR cp mycode.o $TMPDIR cd $TMPDIR octave < mycode.o > data.out cp data.out $PBS_O_WORKDIR