[clinfo] 92/148: Support older OpenCL 1.2 headers

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:50 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 a0c45f334db204067009c54208957996c1cf9b3a
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Mon Oct 27 21:33:57 2014 +0100

    Support older OpenCL 1.2 headers
---
 src/ext.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/ext.h b/src/ext.h
index 03f2664..4c23f99 100644
--- a/src/ext.h
+++ b/src/ext.h
@@ -7,6 +7,15 @@
 #include <CL/cl.h>
 #endif
 
+/* These two defines were introduced in the 1.2 headers
+ * on 2012-11-30, so earlier versions don't have (e.g. Debian wheezy)
+ */
+
+#ifndef CL_DEVICE_IMAGE_PITCH_ALIGNMENT
+#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT                 0x104A
+#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT          0x104B
+#endif
+
 /* 2.0 headers are not very common for the time being, so
  * let's copy the defines for the new CL_DEVICE_* properties
  * here.

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