Enable large arrays: Build octave such that it can use arrays larger than 2Gb.: Difference between revisions

Jump to navigation Jump to search
Add a note to see also section.
(5.2.0_1-w64-64 for Windows 64-bit indexing for linear algebra)
(Add a note to see also section.)
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
* glpk
* glpk
* Qhull
* Qhull
Useful information and projects are listed below in the [[#See also|See also]] section.


To determine the integer size of the BLAS library used by Octave, the following code can be executed:
To determine the integer size of the BLAS library used by Octave, the following code can be executed:
Line 23: Line 25:
c = a' * b
c = a' * b
</syntaxhighlight>
</syntaxhighlight>
## GNU Octave has released in January 2020 a 5.2.0_1-w64-64 for Windows which is 64-bit indexing for linear algebra. We are anxiously awaiting same for Linux and Mac. See gnu.org octave/download/windows


If the BLAS library uses '''32-bit integers''', an error will be thrown:
If the BLAS library uses '''32-bit integers''', an error will be thrown:
Line 53: Line 51:
With this option, Octave will use internally 64-bit integers for array dimensions and indexing. However, '''all numerical libraries''' used by Octave will need to use also 64-bit integers for array dimensions and indexing, and in most cases they need to be compiled from source.
With this option, Octave will use internally 64-bit integers for array dimensions and indexing. However, '''all numerical libraries''' used by Octave will need to use also 64-bit integers for array dimensions and indexing, and in most cases they need to be compiled from source.


For details about how to compile these libraries please read the [http://www.gnu.org/software/octave/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.html#Compiling-Octave-with-64_002dbit-Indexing GNU Octave manual], or alternatively you can use [[MXE]] (M Cross Environment) which takes care of the different packages automatically (especially the configure flags <code>--enable-64</code> and <code>--enable-fortran-int64</code>).
===See also===
 
* [https://octave.org/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.html GNU Octave manual] -- Details on how to compile some of Octave's library dependencies for 64-bit indices.
* [[MXE]] (M Cross Environment) which takes care to compile Octave's library dependencies for 64-bit indices.
 
Two more lightweight solutions compared to [[MXE]] to compile Octave's library dependencies for 64-bit indices.
* https://gitlab.com/mtmiller/octave-blas64-builder
* https://github.com/octave-de/GNU-Octave-enable-64


[[Category:Building]]
[[Category:Building]]

Navigation menu