armadillo linear system solver (with openblas)

前端 未结 1 1804
眼角桃花
眼角桃花 2021-01-14 10:41

I\'ve been testing various open source codes for solving a linear system of equations in C++. So far the fastest I\'ve found is armadillo, using the OPENblas package as well

相关标签:
1条回答
  • 2021-01-14 10:58

    Armadillo doesn't prevent OpenBlas from using more cores. It's possible that the current implementation of OpenBlas simply chooses 2 cores for certain operations.

    You can see Armadillo's source code directly in the downloadable package (it's open source), in the folder "include". Specifically, have a look at the file "include/armadillo_bits/fn_solve.hpp" (which contains the user accessible solve() function), and the file "include/armadillo_bits/auxlib_meat.hpp" (which contains the wrapper and housekeeping code for calling the torturous Blas and Lapack functions).

    If you already have Armadillo installed on your machine, have a look at "/usr/include/armadillo_bits" or "/usr/local/include/armadillo_bits".

    0 讨论(0)
提交回复
热议问题