mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
b5d27eb87c
The MKL pkg-config files often change and are then incorrect for our paths. pkg-config validation finds some issues, but not incorrect paths. So, add a small test program to test whether the generated pkg-config files can actually be used to build a functioning binary. Hopefully this catches future regressions.
13 lines
179 B
C
13 lines
179 B
C
#include <assert.h>
|
|
|
|
#include <mkl_cblas.h>
|
|
|
|
int main() {
|
|
float u[] = {1., 2., 3.};
|
|
float v[] = {4., 5., 6.};
|
|
|
|
float dp = cblas_sdot(3, u, 1, v, 1);
|
|
|
|
assert(dp == 32.);
|
|
}
|