← 输入框|github.com|刷新
Skip to content

Bug in Backend.OpenBLAS.fs #11

Closed
Closed

Description

Hallo,

At first congratulations to this library, but I've found two little bugs in module LAPACK in function ssysv and dsysv, which make these functions useless.
You must correct line 487 from: use arg_b = new PinnedArray(b)
to use arg_b = new PinnedArray(b')
and similar (variable b -> b') in line 580.

Enrico

Activity

  1. gbaydin commented on Dec 13, 2015

    @gbaydin
    Member

    Hi! Thank you for reporting this. I will look into it and let you know.

  2. mrakgr commented on Dec 14, 2015

    @mrakgr
    Contributor

    I've checked into that and currently there is a bug in the latest release of OpenBLAS that prevents the LAPACKE function from being used in row major format. I've worked around that by adding manual transposes and solved these issues in the latest pull request.

  3. brada4 commented on Dec 14, 2015

    @brada4

    It is bug in LAPACKE, you can check with generic LAPACK 3.6.0

  4. gbaydin commented on Dec 14, 2015

    @gbaydin
    Member

    I can confirm that the bugs you pointed out in ssysv and dsysv caused incorrect return values. This is now fixed in the repo.

  5. gbaydin commented on Dec 14, 2015

    @gbaydin
    Member

    Regarding @grek142's mention of another issue about LAPACK row- and column-major order:

    I do not see any bug related with that.

    .NET arrays are stored in memory using row-major order and the library will continue using these. We are aware of LAPACK's way of working with matrices and we designed our wrapper code paying attention to this.

    To make sure that we have a better way of catching similar bugs in future, I have now implemented unit tests for the backend interface. Everything with the OpenBLAS backend seems to be working fine, including operations that depend on LAPACK, such as SolveSymmetric_M_V, Inverse_M, and Det_M.

    If you encounter a bug where any operation gives incorrect result, please do let us know by opening a separate issue for that, showing a minimal example producing incorrect output.

    Also, I have not experienced any unexpected behavior with the LAPACK implementation in OpenBLAS.

  6. ghost closed this as completedon Dec 14, 2015
  7. gbaydin commented on Dec 14, 2015

    @gbaydin
    Member

    Thank you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions