bugGNU Octave - Bugs: bug #57112, `version -blas` reports wrong BLAS...


bug #57112: `version -blas` reports wrong BLAS with LD_PRELOAD to force loading a different BLAS

Submitter:  Mike Miller <mtmiller>
Submitted:  Thu 24 Oct 2019 05:13:40 PM UTC
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 14 Dec 2019 05:43:16 PM UTC, comment #3: 

I pushed a change to the documentation of version here:

Markus Mützel <mmuetzel>
Group administrator
Mon 09 Dec 2019 01:50:33 PM UTC, comment #2: 

The attached patch adds a note to the documentation for "version".

(file #48026)

Markus Mützel <mmuetzel>
Group administrator
Mon 09 Dec 2019 07:08:14 AM UTC, comment #1: 

Maybe we could add a note to the '-blas' and '-lapack' sections of the documentation for "version" that the result might be unreliable and depend on how Octave was compiled.

I agree that making the detection reliable is probably hard or impossible.

Markus Mützel <mmuetzel>
Group administrator
Thu 24 Oct 2019 05:13:40 PM UTC, original submission:  

If Octave is compiled against a particular BLAS implementation, say "-lopenblas", but is run with LD_PRELOAD=/path/to/libblas.so to force a different BLAS library to be used, the `version -blas` detection still reports OpenBLAS.

This may not be solvable, because both the standard BLAS API as well as OpenBLAS-specific functions are all present in the executable image in this case.

Mike Miller <mtmiller>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by apjanke (subscribing because interested)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-09 mmuetzel Attached File- Added bug57112_version_blas.patch, #48026
        Operating SystemGNU/Linux Any
    2019-10-24 apjanke Carbon-Copy- Added apjanke
    2019-10-24 mtmiller Carbon-CopyRemoved 80942 -

    Back to the top

    Powered by Savane 3.13-6ae7.
    Corresponding source code