[clinfo] 35/148: Intel local thread execution extension
Andreas Beckmann
anbe at moszumanska.debian.org
Mon Nov 17 14:09:42 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 713a730b954f69275a52622a95948cc0685e05fe
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date: Tue Jun 11 19:58:06 2013 +0200
Intel local thread execution extension
---
man/clinfo.1 | 3 +++
src/clinfo.c | 5 +++++
src/ext.h | 6 ++++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/man/clinfo.1 b/man/clinfo.1
index d89600a..1facea7 100644
--- a/man/clinfo.1
+++ b/man/clinfo.1
@@ -35,6 +35,9 @@ for the atomic counter extension;
for AMD-specific device attributes;
.IP cl_nv_device_attribute_query
for NVIDIA-specific device attributes.
+.IP cl_intel_exec_by_local_thread
+for the Intel extension allowing CPU devices to run kernels as part of
+the current host thread.
.SH NOTES
Some information is duplicated when available from multiple sources.
diff --git a/src/clinfo.c b/src/clinfo.c
index 8ddcc1b..74df335 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -191,6 +191,7 @@ printDeviceInfo(cl_uint d)
char has_fission[22] = {0};
char has_atomic_counters[26] = {0};
char has_image2d_buffer[27] = {0};
+ char has_intel_local_thread[30] = {0};
// device supports OpenCL 1.2
cl_bool is_12 = CL_FALSE;
@@ -281,6 +282,7 @@ printDeviceInfo(cl_uint d)
if (!*has_atomic_counters)
CHECK_EXT(atomic_counters, cl_ext_atomic_counters_32);
CHECK_EXT(image2d_buffer, cl_khr_image2d_from_buffer);
+ CHECK_EXT(intel_local_thread, cl_intel_exec_by_local_thread);
}
@@ -597,6 +599,9 @@ printDeviceInfo(cl_uint d)
GET_PARAM(QUEUE_PROPERTIES, queueprop);
STR_PRINT(INDENT "Out-of-order execution", bool_str[!!(queueprop & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE)]);
STR_PRINT(INDENT "Profiling", bool_str[!!(queueprop & CL_QUEUE_PROFILING_ENABLE)]);
+ if (*has_intel_local_thread) {
+ printf(I1_STR "%s\n", INDENT "Intel local thread execution", bool_str[1]);
+ }
SZ_PARAM(PROFILING_TIMER_RESOLUTION, "Profiling timer resolution", "ns");
if (*has_amd) {
time_t time;
diff --git a/src/ext.h b/src/ext.h
index 81179e0..65709ea 100644
--- a/src/ext.h
+++ b/src/ext.h
@@ -25,10 +25,12 @@
#define CL_DEVICE_LOCAL_MEM_SIZE_PER_COMPUTE_UNIT_AMD 0x4047
#define CL_DEVICE_LOCAL_MEM_BANKS_AMD 0x4048
+#ifndef CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD
+#define CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD 1
+
typedef union
{
struct { cl_uint type; cl_uint data[5]; } raw;
struct { cl_uint type; cl_char unused[17]; cl_char bus; cl_char device; cl_char function; } pcie;
} cl_device_topology_amd;
-
-#define CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD 1
+#endif
--
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