[clinfo] 05/148: Some NVIDIA extended info
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:38 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 17550325d977e3527eeb5a216194aa2d4de920d7
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Thu Jun 6 12:05:16 2013 +0200
Some NVIDIA extended info
---
src/clinfo.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/clinfo.c b/src/clinfo.c
index 848aae5..0c2e9e2 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -200,7 +200,13 @@ printDeviceInfo(cl_uint d)
// compute units and clock
INT_PARAM(MAX_COMPUTE_UNITS, "Max compute units",);
INT_PARAM(MAX_CLOCK_FREQUENCY, "Max clock frequency", "MHz");
- // TODO NV extensions
+ if (*has_nv) {
+ GET_PARAM(COMPUTE_CAPABILITY_MAJOR_NV, uintval);
+ GET_PARAM(COMPUTE_CAPABILITY_MINOR_NV, uintval2);
+ printf(" %-46s: %u.%u\n",
+ "NVIDIA Compute Capability",
+ uintval, uintval2);
+ }
// workgroup sizes
INT_PARAM(MAX_WORK_ITEM_DIMENSIONS, "Max work item dimensions",);
@@ -270,6 +276,10 @@ printDeviceInfo(cl_uint d)
MEM_PARAM(GLOBAL_MEM_SIZE, "Global memory size");
MEM_PARAM(MAX_MEM_ALLOC_SIZE, "Max memory allocation");
BOOL_PARAM(HOST_UNIFIED_MEMORY, "Unified memory for Host and Device");
+ if (*has_nv) {
+ BOOL_PARAM(INTEGRATED_MEMORY_NV, "NVIDIA integrated memory");
+ BOOL_PARAM(GPU_OVERLAP_NV, "NVIDIA concurrent copy and kernel execution");
+ }
GET_PARAM(GLOBAL_MEM_CACHE_TYPE, cachetype);
STR_PRINT("Global Memory cache type", cache_type_str[cachetype]);
@@ -292,6 +302,9 @@ printDeviceInfo(cl_uint d)
INT_PARAM(MAX_CONSTANT_ARGS, "Max number of constant args",);
MEM_PARAM(MAX_PARAMETER_SIZE, "Max size of kernel argument");
+ if (*has_nv) {
+ INT_PARAM(REGISTERS_PER_BLOCK_NV, "NVIDIA registers per CU",);
+ }
// and finally the extensions
printf(" %-46s: %s\n", "Device Extensions", extensions); \
--
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