[clinfo] 86/148: Handle unspecified partition types
    Andreas Beckmann 
    anbe at moszumanska.debian.org
       
    Mon Nov 17 14:09:49 UTC 2014
    
    
  
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch clinfo
in repository clinfo.
commit 2a502a96bfa8a1e3e4b1de146157be4105e13f18
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Sun Oct 26 23:48:10 2014 +0100
    Handle unspecified partition types
    
    Some versions of the AMD driver claim the GPU supports device partition
    (to as many subdevices as there are CUs), but then they don't specify
    any supported partition type.
---
 src/clinfo.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/src/clinfo.c b/src/clinfo.c
index 259e585..9a971bd 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -501,6 +501,9 @@ printDeviceInfo(cl_uint d)
 			if (cursor < numpartprop - 1)
 				printf(", ");
 		}
+		if (numpartprop == 0) {
+			printf("none specified"); // different from none
+		}
 		puts("");
 		GET_PARAM(PARTITION_AFFINITY_DOMAIN, partdom);
 		if (partdom) {
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git
    
    
More information about the Pkg-opencl-commits
mailing list