summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-05-11 15:09:48 +0200
committerDenis Davydov <davydden@gmail.com>2016-05-11 15:10:13 +0200
commit361b6290341e1248b3c5a5c3895b03610cb7ae3f (patch)
tree290f0cc0ba0e5673065a4ce4af45a06ce489301b
parent809ded74c99ac6883bc5b5e4c7a2da887131360c (diff)
downloadspack-361b6290341e1248b3c5a5c3895b03610cb7ae3f.tar.gz
spack-361b6290341e1248b3c5a5c3895b03610cb7ae3f.tar.bz2
spack-361b6290341e1248b3c5a5c3895b03610cb7ae3f.tar.xz
spack-361b6290341e1248b3c5a5c3895b03610cb7ae3f.zip
openblas: make unit test more robust by outputing only the solution vector from dgesv
-rw-r--r--var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.c2
-rw-r--r--var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.output6
2 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.c b/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.c
index 3813a23b69..2cb90fb883 100644
--- a/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.c
+++ b/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.c
@@ -43,7 +43,7 @@ int main(void) {
int ldb = 3;
dgesv_(&n,&nrhs, &m[0], &lda, ipiv, &x[0], &ldb, &info);
for (i=0; i<3; ++i)
- printf("%5.1f %3d\n", x[i], ipiv[i]);
+ printf("%5.1f\n", x[i]);
return 0;
}
diff --git a/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.output b/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.output
index 9c235e314f..01404462c4 100644
--- a/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.output
+++ b/var/spack/repos/builtin/packages/openblas/test_cblas_dgemm.output
@@ -7,6 +7,6 @@
5.000000
-1.000000
3.000000
- -0.3 1
- 3.0 1499101120
- -3.0 32767
+ -0.3
+ 3.0
+ -3.0