[clinfo] 23/148: cl_khr_image2D_buffer extension

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:40 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 8f12d4d76c55a749d0038e1c071d0df02fe408b1
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Fri Jun 7 20:16:13 2013 +0200

    cl_khr_image2D_buffer extension
---
 man/clinfo.1 | 3 +++
 src/clinfo.c | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/man/clinfo.1 b/man/clinfo.1
index 14ba5f9..392e751 100644
--- a/man/clinfo.1
+++ b/man/clinfo.1
@@ -24,6 +24,9 @@ Supported OpenCL extensions:
 .IP "cl_khr_fp16, cl_khr_fp64, cl_amd_fp64"
 for information about support for half-precision and double-precision
 floating-point data types;
+.IP cl_khr_image2D_buffer
+for information about the base address and pitch alignment requirements
+of buffers to be used as base for 2D images;
 .IP cl_ext_device_fission
 for device fission support in OpenCL 1.1 devices;
 .IP "cl_ext_atomic_counters_32, cl_ext_atomic_counters_64"
diff --git a/src/clinfo.c b/src/clinfo.c
index adfc48a..9a8dc1f 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -196,6 +196,7 @@ printDeviceInfo(cl_uint d)
 	char has_amd[30] = {0};
 	char has_fission[22] = {0};
 	char has_atomic_counters[26] = {0};
+	char has_image2d_buffer[22] = {0};
 
 	// device supports OpenCL 1.2
 	cl_bool is_12 = CL_FALSE;
@@ -284,6 +285,7 @@ printDeviceInfo(cl_uint d)
 		CHECK_EXT(atomic_counters, cl_ext_atomic_counters_64);
 		if (!*has_atomic_counters)
 			CHECK_EXT(atomic_counters, cl_ext_atomic_counters_32);
+		CHECK_EXT(image2d_buffer, cl_khr_image2D_buffer);
 	}
 
 
@@ -553,6 +555,10 @@ printDeviceInfo(cl_uint d)
 			SZ_PARAM(IMAGE_MAX_BUFFER_SIZE, INDENT "Max 1D image size", " pixels");
 			SZ_PARAM(IMAGE_MAX_ARRAY_SIZE, INDENT "Max 1D or 2D image array size", " images");
 		}
+		if (*has_image2d_buffer) {
+			SZ_PARAM(IMAGE_BASE_ADDRESS_ALIGNMENT, INDENT "Base address for 2D image buffer",);
+			SZ_PARAM(IMAGE_PITCH_ALIGNMENT, INDENT "Pitch alignment for 2D image buffer",);
+		}
 		GET_PARAM_PTR(IMAGE2D_MAX_HEIGHT, szvals, 1);
 		GET_PARAM_PTR(IMAGE2D_MAX_WIDTH, (szvals+1), 1);
 		printf(I2_STR "%zux%zu pixels\n", "Max 2D image size",

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