Repository navigation
lapack: enable tests & remove python dependency - #113021
Conversation
The tests work with both the pure Makefile build and the CMake-based build but
The Python dependency is superfluous though. It just pretty prints the result and only when the pure Makefile build is executed. |
|
You need to specify |
d433e56 to
18640ac
Compare
|
The tests only segfault for me if I add |
|
This might be a candidate for staging. |
Yes - the frecursive (which is necessary for the library to work correctly in multithreaded contexts - has the side effect of moving a big array of test input in one of the lapack-test executables onto the stack. Currently discussing in Reference-LAPACK if/how to remove that option when building the testsuite. Recommendation for now is to build with |
90326ba mentions enabling them and did set doCheck = true, but that doesn't actually work
18640ac to
203534d
Compare
|
If nobody has any objections and since this does not have any maintainer (and before anyone asks, no I won't add myself, I just want fewer things to depend on python2), I'll merge this in a few days. As for |
|
Some CBLAS tests are broken on Darwin. I asked about it upstream thinking it's But it turns out that tests also fail on As a stopgap solution, the following skips failing tests: |
|
would be great if you updated the lapack issue with that info as well.. this test failure is not reproducible for me on Linux, might be useful to know what cmake options (if any) you used, and which compiler on x86_64 |
Tests were enabled in NixOS#113021 and staging is broken since then.
Tests were enabled in #113021 and staging is broken since then.
Motivation for this change
90326ba mentions enabling them and did set doCheck = true, but that doesn't actually work, because
the cmake generated Makefiles do not have the right targetsit was missing the flag to enable them.As the python dependency is only needed for tests (edit: in the Makefiles, but not in cmake),
but they do not work,we can just remove it.
~~It would obviously be better to enable them instead, but ~~ lapack seems to
have 3 semi-incompatible build systems,
and the tests seem to only workwith the Makefiles, which we do not and probably also do not want to
use.
See Reference-LAPACK/lapack#488 as for why we wouldn't want to use the Makefiles.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)