[python-arrayfire] 228/250: Function to get the current revision of arrayfire
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:51 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 d385b4d1246d9f040ae487068599bdde0a07526b
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Wed Mar 2 15:49:44 2016 -0500
Function to get the current revision of arrayfire
---
arrayfire/util.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arrayfire/util.py b/arrayfire/util.py
index a20002c..db2286d 100644
--- a/arrayfire/util.py
+++ b/arrayfire/util.py
@@ -75,12 +75,21 @@ def safe_call(af_error):
raise RuntimeError(to_str(err_str), af_error)
def get_version():
+ """
+ Function to get the version of arrayfire.
+ """
major=ct.c_int(0)
minor=ct.c_int(0)
patch=ct.c_int(0)
safe_call(backend.get().af_get_version(ct.pointer(major), ct.pointer(minor), ct.pointer(patch)))
return major.value,minor.value,patch.value
+def get_reversion():
+ """
+ Function to get the revision hash of the library.
+ """
+ return to_str(backend.get().af_get_revision())
+
to_dtype = {'f' : Dtype.f32,
'd' : Dtype.f64,
'b' : Dtype.b8,
--
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