nasoq icon indicating copy to clipboard operation
nasoq copied to clipboard

[WIP] Added support for apple accelerate as BLAS/LAPACK backend.

Open HasKha opened this issue 10 months ago • 5 comments

Added support for apple Accelerate. This only works on apple silicon.

Build with cmake -DNASOQ_BLAS_BACKEND=Accelerate -DNASOQ_USE_CLAPACK=OFF .

Important: This is not fully functional as it is, and I could use some help

  • CMake runs fine and it compile without errors.
  • The NASOQ_Test executable runs and completes correctly
  • The NASOQ_Catch2_Tests has issues, and the outcome does not appear to be deterministic. I have seen the following:
    • nasoq::quadprog returns 0 and x/y/z do not match. This is most often but not always.
    • nasoq::quadprog returns 1 and x/y/z do not match. Rare.
    • nasoq::quadprog returns 1 and x/y/z do match. Also rare.
  • After the above, the program exits. It can crash during destruction. This also may or may not happen, it is not deterministic and it is apparently unrelated to the above issues.

Note that the above issues do not exist in the current main branch, or when building in this branch with cmake -DNASOQ_BLAS_BACKEND=OpenBLAS -DNASOQ_USE_CLAPACK=ON .

HasKha avatar Apr 15 '24 19:04 HasKha