[arrayfire] 129/284: Cleanup/improve backend test
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 b260abf1703e3adea569f477335ad4020e72e7da
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Dec 31 11:12:24 2015 -0500
Cleanup/improve backend test
---
test/backend.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/backend.cpp b/test/backend.cpp
index 59b8fd5..7b8dbdd 100644
--- a/test/backend.cpp
+++ b/test/backend.cpp
@@ -37,10 +37,15 @@ void backendTest()
{
int backends = af::getAvailableBackends();
+ ASSERT_NE(backends, 0);
+
bool cpu = backends & AF_BACKEND_CPU;
bool cuda = backends & AF_BACKEND_CUDA;
bool opencl = backends & AF_BACKEND_OPENCL;
+ printf("\nRunning Default Backend...\n");
+ testFunction<float>();
+
if(cpu) {
printf("\nRunning CPU Backend...\n");
af::setBackend(AF_BACKEND_CPU);
--
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