Skip to content
Snippets Groups Projects
Commit dddaf962 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update octave.md

parent 661732c8
No related branches found
No related tags found
No related merge requests found
Pipeline #39681 failed
!!!warning
This page has not been updated yet. The page does not reflect the transition from PBS to Slurm.
# Octave # Octave
## Introduction ## Introduction
...@@ -31,7 +28,7 @@ To run Octave interactively, log in with the `ssh -X` parameter for X11 forwardi ...@@ -31,7 +28,7 @@ To run Octave interactively, log in with the `ssh -X` parameter for X11 forwardi
$ octave $ octave
``` ```
To run Octave in batch mode, write an Octave script, then write a bash jobscript and execute via the `qsub` command. By default, Octave will use 128 threads on Karolina when running MKL kernels. To run Octave in batch mode, write an Octave script, then write a bash jobscript and execute via the `salloc` command. By default, Octave will use 128 threads on Karolina when running MKL kernels.
```bash ```bash
#!/bin/bash #!/bin/bash
...@@ -57,7 +54,7 @@ cp output.out $PBS_O_WORKDIR/. ...@@ -57,7 +54,7 @@ cp output.out $PBS_O_WORKDIR/.
exit exit
``` ```
This script may be submitted directly to the PBS workload manager via the `qsub` command. The inputs are in the octcode.m file, outputs in the output.out file. See the single node jobscript example in the [Job execution section][1]. This script may be submitted directly to the PBS workload manager via the `salloc` command. The inputs are in the octcode.m file, outputs in the output.out file. See the single node jobscript example in the [Job execution section][1].
The Octave c compiler `mkoctfile` calls the GNU GCC 6.3.0 for compiling native C code. This is very useful for running native C subroutines in Octave environment. The Octave c compiler `mkoctfile` calls the GNU GCC 6.3.0 for compiling native C code. This is very useful for running native C subroutines in Octave environment.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment