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

Submitted by:  Mike Miller <mtmiller>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project Member
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>
Project Member
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>
Project Member
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>
Project Administrator


(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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.6