[clinfo] 59/148: Support cl_qcom_ext_host_ptr extension

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:45 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 dea7aa79d3e8add92b44c2a308c40cea9c8137a2
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Fri Aug 22 10:03:30 2014 +0200

    Support cl_qcom_ext_host_ptr extension
---
 man/clinfo.1 | 6 +++++-
 src/clinfo.c | 6 ++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/man/clinfo.1 b/man/clinfo.1
index 162247a..e4c242e 100644
--- a/man/clinfo.1
+++ b/man/clinfo.1
@@ -53,7 +53,11 @@ for the Intel extension allowing CPU devices to run kernels as part of
 the current host thread;
 .TP
 .B cl_altera_device_temperature
-for the Altera extension to query the core temperature of the device.
+for the Altera extension to query the core temperature of the device;
+.TP
+.B cl_qcom_ext_host_ptr
+for the QUALCOMM extension to query page size and required padding in external
+memory allocation.
 
 .SH NOTES
 Some information is duplicated when available from multiple sources.
diff --git a/src/clinfo.c b/src/clinfo.c
index 3fda1e9..df70b71 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -214,6 +214,7 @@ printDeviceInfo(cl_uint d)
 	char has_intel_local_thread[30] = {0};
 	char has_altera_dev_temp[29] = {0};
 	char has_spir[12] = {0};
+	char has_qcom_ext_host_ptr[21] = {0};
 
 	// device supports OpenCL 1.2
 	cl_bool is_12 = CL_FALSE;
@@ -310,6 +311,7 @@ printDeviceInfo(cl_uint d)
 		CHECK_EXT(image2d_buffer, cl_khr_image2d_from_buffer);
 		CHECK_EXT(intel_local_thread, cl_intel_exec_by_local_thread);
 		CHECK_EXT(altera_dev_temp, cl_altera_device_temperature);
+		CHECK_EXT(qcom_ext_host_ptr, cl_qcom_ext_host_ptr);
 	}
 
 
@@ -587,6 +589,10 @@ printDeviceInfo(cl_uint d)
 	GET_PARAM(MEM_BASE_ADDR_ALIGN, uintval);
 	printf(I1_STR "%u bits (%u bytes)\n",
 		"Alignment of base address", uintval, uintval/8);
+	if (*has_qcom_ext_host_ptr) {
+		SZ_PARAM(PAGE_SIZE_QCOM, "Page size (QUALCOMM)", " bytes");
+		SZ_PARAM(EXT_MEM_PADDING_IN_BYTES_QCOM, "Externa memory padding (QUALCOMM)", " bytes");
+	}
 
 	// cache
 	GET_PARAM(GLOBAL_MEM_CACHE_TYPE, cachetype);

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