Octave for openSUSE: Difference between revisions

From Octave
Jump to navigation Jump to search
(Bug reporting)
m (add openblas)
Line 21: Line 21:


=== Linear algebra libraries ===
=== Linear algebra libraries ===
openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS is usually much faster. You can switch it by update-alternatives mechanism:
openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS or OpenBLAS are usually much faster. You can switch it by update-alternatives mechanism:


  /usr/sbin/update-alternatives --config libblas.so.3
  /usr/sbin/update-alternatives --config libblas.so.3
Line 28: Line 28:
Example:
Example:


There are 4 choices for the alternative libblas.so.3 (providing /usr/lib64/libblas.so.3).
   Selection    Path                            Priority  Status
   Selection    Path                            Priority  Status
  ------------------------------------------------------------
  ------------------------------------------------------------
Line 34: Line 36:
   2            /usr/lib64/atlas/libtatlas.so.3  20        manual mode
   2            /usr/lib64/atlas/libtatlas.so.3  20        manual mode
   3            /usr/lib64/libblas.so.3.4.2      50        manual mode
   3            /usr/lib64/libblas.so.3.4.2      50        manual mode
  4            /usr/lib64/libopenblasp.so.0      20        manual mode


=== Image export and import ===
=== Image export and import ===

Revision as of 21:40, 14 March 2014

Pre-compiled binaries

Binary packages for Octave are provided by all versions of openSUSE. These are the most well-tested binaries available and should work best for most users.

zypper in octave

If you want to use install latest stable version of Octave and Octave Forge packages, you can use Science repository.

zypper ar http://download.opensuse.org/repositories/science/<openSUSE version>/ Science
zypper ref
zypper in octave

There <openSUSE verion> is your version of openSUSE, for example openSUSE_13.1

Octave Forge

Octave-Forge binary packages are provided by Science repository. You can list all available packages by command

zypper se octave-forge

Linear algebra libraries

openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS or OpenBLAS are usually much faster. You can switch it by update-alternatives mechanism:

/usr/sbin/update-alternatives --config libblas.so.3
/usr/sbin/update-alternatives --config liblapack.so.3

Example:

There are 4 choices for the alternative libblas.so.3 (providing /usr/lib64/libblas.so.3).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/lib64/libblas.so.3.4.2       50        auto mode
  1            /usr/lib64/atlas/libsatlas.so.3   20        manual mode
  2            /usr/lib64/atlas/libtatlas.so.3   20        manual mode
  3            /usr/lib64/libblas.so.3.4.2       50        manual mode
  4            /usr/lib64/libopenblasp.so.0      20        manual mode

Image export and import

GraphicsMagick++ library from openSUSE repositories was compiled with quantum depth 16 which limits reading and writing images to 16 bit. See more details on GraphicsMagick wiki page.

Bug reporting

You can report openSUSE specific bugs by pressing "Report Bug" button on OBS Octave page (SUSE bugzilla account required).