[arrayfire] 204/284: af_set_device now only warns when device > 0 on CPU
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:33 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 9d0c159d249e512f86c9c8a79f483213772abaa5
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Mon Jan 11 17:04:38 2016 -0500
af_set_device now only warns when device > 0 on CPU
---
src/backend/cpu/platform.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/cpu/platform.cpp b/src/backend/cpu/platform.cpp
index 19942f0..0039b20 100644
--- a/src/backend/cpu/platform.cpp
+++ b/src/backend/cpu/platform.cpp
@@ -237,11 +237,11 @@ int getDeviceCount()
int setDevice(int device)
{
static bool flag;
- if(!flag) {
- printf("WARNING: af_set_device not supported for CPU\n");
+ if(!flag && device != 0) {
+ printf("WARNING af_set_device(device): device can only be 0 for CPU\n");
flag = 1;
}
- return 1;
+ return 0;
}
int getActiveDeviceId()
--
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