[clinfo] 04/55: Support cl_intel_required_subgroup_size

Andreas Beckmann anbe at moszumanska.debian.org
Sat Jan 13 14:39:59 UTC 2018


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

anbe pushed a commit to branch master
in repository clinfo.

commit 6a2cac7effce2181edeb110efca223da193c0d2d
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Sat Jul 16 18:16:53 2016 +0200

    Support cl_intel_required_subgroup_size
---
 man/clinfo.1 | 3 +++
 src/clinfo.c | 4 ++++
 src/ext.h    | 3 +++
 3 files changed, 10 insertions(+)

diff --git a/man/clinfo.1 b/man/clinfo.1
index 62ab629..4ade4e8 100644
--- a/man/clinfo.1
+++ b/man/clinfo.1
@@ -94,6 +94,9 @@ for the version of the Intel Motion Estimation accelerator version;
 .B cl_intel_simultaneous_sharing
 for simultaneous CL/GL/DirectX context sharing (only partial support);
 .TP
+.B cl_intel_required_subgroup_size
+to enumerate allowed sub-group sizes;
+.TP
 .B cl_altera_device_temperature
 for the Altera extension to query the core temperature of the device;
 .TP
diff --git a/src/clinfo.c b/src/clinfo.c
index 2cfa188..62c98cc 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -560,6 +560,7 @@ struct device_info_checks {
 	char has_image2d_buffer[27];
 	char has_intel_local_thread[30];
 	char has_intel_AME[36];
+	char has_intel_required_subgroup_size[32];
 	char has_altera_dev_temp[29];
 	char has_spir[12];
 	char has_qcom_ext_host_ptr[21];
@@ -582,6 +583,7 @@ DEFINE_EXT_CHECK(atomic_counters)
 DEFINE_EXT_CHECK(image2d_buffer)
 DEFINE_EXT_CHECK(intel_local_thread)
 DEFINE_EXT_CHECK(intel_AME)
+DEFINE_EXT_CHECK(intel_required_subgroup_size)
 DEFINE_EXT_CHECK(altera_dev_temp)
 DEFINE_EXT_CHECK(spir)
 DEFINE_EXT_CHECK(qcom_ext_host_ptr)
@@ -698,6 +700,7 @@ void identify_device_extensions(const char *extensions, struct device_info_check
 	CHECK_EXT(image2d_buffer, cl_khr_image2d_from_buffer);
 	CHECK_EXT(intel_local_thread, cl_intel_exec_by_local_thread);
 	CHECK_EXT(intel_AME, cl_intel_advanced_motion_estimation);
+	CHECK_EXT(intel_required_subgroup_size, cl_intel_required_subgroup_size);
 	CHECK_EXT(altera_dev_temp, cl_altera_device_temperature);
 	CHECK_EXT(qcom_ext_host_ptr, cl_qcom_ext_host_ptr);
 	CHECK_EXT(simultaneous_sharing, cl_intel_simultaneous_sharing);
@@ -1670,6 +1673,7 @@ struct device_info_traits dinfo_traits[] = {
 	{ CLINFO_BOTH, DINFO(CL_DEVICE_WARP_SIZE_NV, "Warp size (NV)", int), dev_has_nv },
 	{ CLINFO_BOTH, DINFO(CL_DEVICE_WAVEFRONT_WIDTH_AMD, "Wavefront width (AMD)", int), dev_is_gpu_amd },
 	{ CLINFO_BOTH, DINFO(CL_DEVICE_MAX_NUM_SUB_GROUPS, "Max sub-groups per work group", int), dev_is_21 },
+	{ CLINFO_BOTH, DINFO(CL_DEVICE_SUB_GROUP_SIZES_INTEL, "Sub-group sizes (Intel)", szptr), dev_has_intel_required_subgroup_size },
 
 	/* Preferred/native vector widths: header is only presented in HUMAN case, that also pairs
 	 * PREFERRED and NATIVE in a single line */
diff --git a/src/ext.h b/src/ext.h
index 6094c52..7986b9f 100644
--- a/src/ext.h
+++ b/src/ext.h
@@ -162,4 +162,7 @@ typedef cl_ulong  cl_device_partition_property_ext;
 #define CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL		0x4104
 #define CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL	0x4105
 
+/* cl_intel_required_subgroup_size */
+#define CL_DEVICE_SUB_GROUP_SIZES_INTEL			0x4108
+
 #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