Institute for Reliable Computing
Head: Prof. Dr. Siegfried M. Rump

Starting with Version 9, INTLAB is compatible with GNU Octave Version 5.2.0 or newer.

The officially distributed versions of GNU Octave, however, may not switch the rounding mode correctly when computing with multiple threads.

Many thanks to Kai Torben Ohlhus for help with GNU Octave.


Option 1: Disable multiple OpenBLAS threads (simple, but slow)

On Windows perform the following three steps (as shown in the three screenshots below) before installing INTLAB:

  1. From the start menu search and open "Edit environment variables for your account".
  2. Create for the current account two new environment variables OMP_NUM_THREADS and OPENBLAS_NUM_THREADS with respective value 1.

    NOTE: This might also affect other applications using OpenBLAS, e.g. Python with NumPy.

  3. In the GNU Octave session.
    1. In INTLAB Version 14.1 and older only: edit intvalinit (intval/intvalinit.m in the extracted INTLAB folder) and comment out the line with "%".
    2. Verify the value of the environment variables with getenv('OMP_NUM_THREADS') and getenv('OPENBLAS_NUM_THREADS') to be 1, respectively.
    3. Run startintlab as usual.

Windows settings Environment variables Octave session

On macOs and Linux, start GNU Octave with the following command line (or change the respective application launcher's environment variables):

      OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 octave --gui

and perform the steps 3.1 ‐ 3.3 from the Windows instructions.


Option 2: Replace OpenBLAS library (advanced, keeps multi-threaded OpenBLAS)

Most GNU Octave installations, including the Windows version, use the OpenBLAS-Library. By default, OpenBLAS does not synchronize the floating-point control and status register (FPCSR) when using multiple threads for a computation.

This default OpenBLAS DLL shipped with GNU Octave must be replaced by a customized DLL, which was built identically, but using the additional compiler flag CONSISTENT_FPCSR=1.


For macOS and Linux this procedure is rather straight forward and explained in the following website: https://siko1056.github.io/blog/2021/12/23/octave-matlab-directed-rounding.


On Windows this procedure is more complex. Thus pre-compiled DLL libraries are provided for convenience and we assume the Windows-64 (recommended) version of GNU Octave to be installed.

Please download

and rename the downloaded file to libblas.dll.

  1. Copy the downloaded libblas.dll to the GNU Octave installation directory C:\Program Files\GNU Octave\Octave-11.3.0\mingw64\bin.
  2. This copy procedure will require administrator privileges. Press the "Continue" button and please enter the administrator password if required.
  3. In the GNU Octave session.
    1. In INTLAB Version 14.1 and older only: edit intvalinit (intval/intvalinit.m in the extracted INTLAB folder) and comment out the line with "%" as outlined in more detail in the "Option 1" section of this page.
    2. Verify the value of the environment variables with getenv('OMP_NUM_THREADS') and getenv('OPENBLAS_NUM_THREADS') to be unset or higher than 1, respectively.
    3. Run startintlab as usual.

Windows explorer Administrator privileges confirmation Octave session


More details

The file libopenblasINTLAB-0.3.33.dll was built using the MXE cross-compiler for Windows as the official GNU Octave release. For building the OpenBLAS library, only the additional compiler flag CONSISTENT_FPCSR=1 was added in https://github.com/mmuetzel/mxe-octave/blob/140c6754497f1ecbce2c31cbc242560114c410dd/src/openblas.mk#L25-L30 during the build process.

For more information on how to build the OpenBLAS library for GNU Octave on Windows, please see https://wiki.octave.org/Windows_Installer.


In case of any questions regarding the build procedures, please contact Kai Torben Ohlhus <k.ohlhus@gmail.com>.

Prof. Dr. Siegfried M. Rump
Institute for Reliable Computing
Hamburg University of Technology
An Schwarzenberg-Campus 3
21071 Hamburg
Germany