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.
License
Octave is licensed under the open-source, GNU General Public License (GPL).
Available
Octave 9.1.0 is available on Puhti and Mahti.
Usage
Interactive use on Puhti
You can use Octave by the loading the module:
module load octave
Then, start Octave with the command:
octave
Octave is installed as a container.
Installing packages
You can install Octave packages on the user side as follows:
pkg install -local "<pkg-url>"
If you need to install a package that require Linux packages, you can send a message to the Service Desk and we will install them to the container.
Example batch jobs
Example about a serial batch script job on Puhti
#!/bin/bash
#SBATCH --account=<project>
#SBATCH --partition=small
#SBATCH --time=00:15:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=1000
module load octave
srun octave script.m
Submit the script with sbatch <script_name.sh>