[arrayfire] 134/284: Use isLAPACKAvailable in testHelper
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit fe3fa66c5cdd70cca6c53c17454402d03d057a1d
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Dec 31 12:48:45 2015 -0500
Use isLAPACKAvailable in testHelper
---
test/testHelpers.hpp | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/test/testHelpers.hpp b/test/testHelpers.hpp
index 0b22cef..2744a8d 100644
--- a/test/testHelpers.hpp
+++ b/test/testHelpers.hpp
@@ -397,22 +397,9 @@ bool noImageIOTests()
bool noLAPACKTests()
{
- // Run LU
- af::dim4 dims(5, 5);
- af_array in = 0, l = 0, u = 0, p= 0;
- af_randu(&in, dims.ndims(), dims.get(), (af_dtype) af::dtype_traits<float>::af_type);
-
- af_err err = af_lu(&l, &u, &p, in);
-
- if(in != 0) af_release_array(in);
- if(l != 0) af_release_array(l);
- if(u != 0) af_release_array(u);
- if(p != 0) af_release_array(p);
-
- if(err == AF_ERR_NOT_CONFIGURED)
- return true; // Yes, disable test
- else
- return false; // No, let test continue
+ bool ret = !af::isLAPACKAvailable();
+ if(ret) printf("LAPACK Not Configured. Test will exit\n");
+ return ret;
}
// TODO: perform conversion on device for CUDA and OpenCL
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list