[clinfo] 77/148: Add PCI-E to NVIDIA's device topology output

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:48 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 190bb95c39fbbffbe7bb074f2ab4f16c40e02570
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Thu Oct 16 08:55:38 2014 +0200

    Add PCI-E to NVIDIA's device topology output
    
    It's not needed (NVIDIA doesn't expose other forms of topology),
    but this way it's consistent with AMD's.
---
 src/clinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 1ff9f39..6482825 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -390,7 +390,7 @@ printDeviceInfo(cl_uint d)
 		if (!had_error)
 			GET_PARAM(PCI_SLOT_ID_NV, slot);
 		if (!had_error)
-			snprintf(strbuf, bufsz, "%02x:%02x.%x", bus, slot >> 3, slot & 7);
+			snprintf(strbuf, bufsz, "PCI-E, %02x:%02x.%x", bus, slot >> 3, slot & 7);
 		STR_PRINT("Device Topology (NV)", strbuf);
 	}
 

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