[arrayfire] 364/408: OpenCL backend af_info function string fixes

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit d2741e0c62e7deb03eedbb39c149b59e553e3011
Author: pradeep <pradeep at arrayfire.com>
Date:   Thu Aug 27 15:08:41 2015 -0400

    OpenCL backend af_info function string fixes
---
 src/backend/opencl/platform.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/backend/opencl/platform.cpp b/src/backend/opencl/platform.cpp
index 874832e..dd96d2e 100644
--- a/src/backend/opencl/platform.cpp
+++ b/src/backend/opencl/platform.cpp
@@ -246,8 +246,12 @@ std::string getInfo()
                         (show_braces ? string("]") : "-");
             info << id << " " << platformMap(platStr) << ": " << ltrim(dstr) << " ";
 #ifndef NDEBUG
-            info << device.getInfo<CL_DEVICE_VERSION>();
-            info << " Device driver " << device.getInfo<CL_DRIVER_VERSION>();
+            string devVersion = device.getInfo<CL_DEVICE_VERSION>();
+            string driVersion = device.getInfo<CL_DRIVER_VERSION>();
+            devVersion.pop_back();
+            driVersion.pop_back();
+            info << devVersion;
+            info << " Device driver " << driVersion;
             info << " FP64 Support("
                  << (device.getInfo<CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE>()>0 ? "True" : "False")
                  << ")";

-- 
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