[python-arrayfire] 194/250: Fixing an issue with set_device in tests
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit 89da7543c1f7b278fe379fb658d693d2d09972a9
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Mon Dec 14 18:17:29 2015 -0500
Fixing an issue with set_device in tests
---
tests/simple/device.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/simple/device.py b/tests/simple/device.py
index 40c6026..98a2b71 100644
--- a/tests/simple/device.py
+++ b/tests/simple/device.py
@@ -19,8 +19,8 @@ def simple_device(verbose=False):
print_func(af.is_dbl_supported())
af.sync()
- dev = af.get_device()
- print_func(dev)
+ curr_dev = af.get_device()
+ print_func(curr_dev)
for k in range(af.get_device_count()):
af.set_device(k)
dev = af.get_device()
@@ -38,7 +38,7 @@ def simple_device(verbose=False):
assert(mem_info['alloc']['buffers'] == 1 + mem_info_old['alloc']['buffers'])
assert(mem_info[ 'lock']['buffers'] == 1 + mem_info_old[ 'lock']['buffers'])
- af.set_device(dev)
+ af.set_device(curr_dev)
a = af.randu(10,10)
display_func(a)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list