debian/ 0000755 0000000 0000000 00000000000 12236554157 007200 5 ustar debian/opencl-headers.README.Debian 0000644 0000000 0000000 00000001151 11450571143 014116 0 ustar opencl-headers for Debian
-------------------------
This package contains the OpenCL API headers as published by The Khronos
Group Inc. These headers are free. There is no OpenCL library included
because no free OpenCL implementation (that I know of) exists at the moment.
Non-free OpenCL implementations are available from e.g. NVIDIA (packaged in
Debian as nvidia-libopencl1 and nvidia-opencl-icd) or AMD/ATI.
The OpenCL specifications can be freely downloaded from
but cannot be redistributed.
-- Andreas Beckmann Wed, 29 Sep 2010 10:00:57 +0200
debian/opencl-headers.install 0000644 0000000 0000000 00000000111 11450563746 013453 0 ustar opencl.h usr/include/CL/
cl*.h usr/include/CL/
cl*.hpp usr/include/CL/
debian/watch 0000644 0000000 0000000 00000000365 11503627715 010232 0 ustar version=3
# There is no tarball or similar distribution available from
# http://www.khronos.org/registry/cl/
# The headers have to be downloaded file-by-file. The get-orig-source
# target in debian/rules can be used to download and tar them.
debian/changelog 0000644 0000000 0000000 00000010446 12236554071 011052 0 ustar khronos-opencl-headers (1.2-2013.10.23-1) unstable; urgency=low
* New upstream release.
* Bump Standards-Version to 3.9.5 (no changes needed).
-- Andreas Beckmann Thu, 07 Nov 2013 00:44:48 +0100
khronos-opencl-headers (1.2-2013.06.28-2) unstable; urgency=low
* opencl-headers: Set Multi-Arch: foreign.
* Set Maintainer to 'Debian OpenCL Maintainers '.
-- Andreas Beckmann Mon, 29 Jul 2013 00:25:51 +0200
khronos-opencl-headers (1.2-2013.06.28-1) unstable; urgency=low
* New upstream release.
* AMD_extensions.patch: Rediffed.
* Drop Breaks/Replaces against squeeze packages.
* Use canonical Vcs-* URLs.
* Switch to debhelper 9.
-- Andreas Beckmann Sun, 14 Jul 2013 15:28:57 +0200
khronos-opencl-headers (1.2-2013.02.12-1) unstable; urgency=low
* New upstream release.
* CL_EXT_SUFFIX__VERSION_1_2.diff: Drop, fixed upstream.
* clSetPrintfCallback.patch: Drop, no longer needed.
* Bump Standards-Version to 3.9.4 (no changes needed).
* Update my email address and drop DMUA.
-- Andreas Beckmann Sun, 28 Apr 2013 01:11:59 +0200
khronos-opencl-headers (1.2-2012.11.30-2ubuntu1) raring; urgency=low
* Build with -msse2 -msse. The package builds header files only, so don't
care about the flags which are needed to include the intrinsics headers.
-- Matthias Klose Wed, 03 Apr 2013 12:17:51 +0200
khronos-opencl-headers (1.2-2012.11.30-2) unstable; urgency=low
* opencl-headers: Set Multi-Arch: allowed. (Closes: #698495)
-- Andreas Beckmann Sat, 19 Jan 2013 13:05:07 +0100
khronos-opencl-headers (1.2-2012.11.30-1) unstable; urgency=low
* New upstream release. (Closes: #695124, #684444)
* Run some trivial compile tests during package build.
* CL_EXT_SUFFIX__VERSION_1_2.diff: New, fix typo in macro name.
* clSetPrintfCallback.patch: New, add missing declaration.
* AMD_extensions.patch: New, add a few extensions from AMD that are not yet
in the headers published by khronos. Thanks Vincent Danjean!
(Closes: #695136)
-- Andreas Beckmann Fri, 07 Dec 2012 10:42:50 +0100
khronos-opencl-headers (1.2-2012.04.18a-1) unstable; urgency=low
* Use cl.hpp from API 1.2. (Closes: #676427)
* Remove reference to API 1.0 from long Description. (Closes: #675486)
-- Andreas Beckmann Fri, 08 Jun 2012 05:36:06 +0200
khronos-opencl-headers (1.2-2012.04.18-2) unstable; urgency=low
* Move from contrib to main. There is a free version of libopencl1 (from
http://forge.imag.fr/projects/ocl-icd/) coming, see #675528.
-- Andreas Beckmann Sat, 02 Jun 2012 20:11:28 +0200
khronos-opencl-headers (1.2-2012.04.18-1) unstable; urgency=low
* New upstream release.
* Upload to unstable.
* debian/copyright: Use the final copyright-format 1.0 URL.
* Update Standards-Version to 3.9.3, no changes needed.
-- Andreas Beckmann Wed, 09 May 2012 13:40:54 +0200
khronos-opencl-headers (1.2-2011.11.16-1) experimental; urgency=low
[ Andreas Beckmann ]
* OpenCL API 1.2.
* debian/copyright: Update to dep5.mdwn?revision=202.
* Upload to experimental.
[ Russ Allbery ]
* Add DM-Upload-Allowed: yes.
-- Russ Allbery Mon, 23 Jan 2012 11:11:54 -0800
khronos-opencl-headers (1.1-2010.07.15-2) unstable; urgency=low
* Upload to unstable.
* Set Maintainer to Debian NVIDIA Maintainers and move myself to Uploaders.
-- Andreas Beckmann Sat, 25 Jun 2011 18:24:31 +0200
khronos-opencl-headers (1.1-2010.07.15-1) experimental; urgency=low
* OpenCL API 1.1
* Upload to experimental.
* Update Standards-Version to 3.9.2, no changes needed.
-- Andreas Beckmann Sun, 15 May 2011 18:08:12 -0700
khronos-opencl-headers (1.0-2010.06.13-2) unstable; urgency=low
[ Russ Allbery ]
* Upload to unstable.
* Add myself to Uploaders.
[ Andreas Beckmann ]
* Fix typo in debian/watch and add version=3.
-- Russ Allbery Tue, 26 Apr 2011 17:11:42 -0700
khronos-opencl-headers (1.0-2010.06.13-1) experimental; urgency=low
* Initial release. (Closes: #598477)
* Upload to experimental.
-- Andreas Beckmann Mon, 11 Oct 2010 01:01:53 +0200
debian/README.source 0000644 0000000 0000000 00000001016 11451056603 011344 0 ustar khronos-opencl-headers for Debian
---------------------------------
The headers can be downloaded as individual files from
. The get-orig-source target in
debian/rules can be used to download them all and generate a tarball.
The API version to download has to be defined in debian/rules.
As upstream version number use A.B-YYYY.MM.DD where A.B is the API version,
followed by the date of last modification that can be found in the VCS
generated Revision:/Date: comment in the headers.
debian/control 0000644 0000000 0000000 00000002034 12236554071 010575 0 ustar Source: khronos-opencl-headers
Section: libdevel
Priority: extra
Maintainer: Debian OpenCL Maintainers
Uploaders:
Andreas Beckmann ,
Russ Allbery ,
Build-Depends:
debhelper (>= 9),
libgl1-mesa-dev,
Standards-Version: 3.9.5
Homepage: http://www.khronos.org/registry/cl/
Vcs-Svn: svn://anonscm.debian.org/pkg-nvidia/packages/khronos-opencl-headers/trunk
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-nvidia/packages/khronos-opencl-headers/
Package: opencl-headers
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}
Description: OpenCL (Open Computing Language) header files
OpenCL (Open Computing Language) is a multi-vendor open standard for
general-purpose parallel programming of heterogeneous systems that include
CPUs, GPUs and other processors.
.
This package provides the development header files for the OpenCL API
as published by The Khronos Group Inc. The corresponding specification and
documentation can be found on the Khronos website.
debian/compat 0000644 0000000 0000000 00000000002 12170524160 010362 0 ustar 9
debian/rules 0000755 0000000 0000000 00000001461 12060335263 010250 0 ustar #!/usr/bin/make -f
%:
dh $@
override_dh_auto_test:
$(MAKE) -C debian/t
override_dh_auto_clean:
$(MAKE) -C debian/t clean
api = 1.2
api_hpp = 1.2
headers_1.0 = opencl.h cl_platform.h cl.h cl_ext.h cl_d3d10.h cl_gl.h cl_gl_ext.h
headers_1.1 = $(headers_1.0)
headers_1.2 = $(headers_1.1) cl_dx9_media_sharing.h cl_d3d11.h
headers_hpp = cl.hpp
src_dir = khronos-opencl-headers-$(api).orig
src_file = khronos-opencl-headers-$(api).tar.gz
get-orig-source:
rm -rf $(src_dir)
mkdir $(src_dir)
set -e; cd $(src_dir) ; \
for h in $(headers_$(api)) ; do \
wget http://www.khronos.org/registry/cl/api/$(api)/$$h ; \
done ; \
for h in $(headers_hpp) ; do \
wget http://www.khronos.org/registry/cl/api/$(api_hpp)/$$h ; \
done
tar cfz $(src_file) --owner=root --group=src $(src_dir)
rm -rf $(src_dir)
debian/opencl-headers.lintian-overrides 0000644 0000000 0000000 00000000026 11707302504 015434 0 ustar no-upstream-changelog
debian/copyright 0000644 0000000 0000000 00000004222 12137056053 011123 0 ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: OpenCL headers
Upstream-Contact: The Khronos Group Inc.
Source: http://www.khronos.org/registry/cl/
Files: *
Copyright: (c) 2008-2012 The Khronos Group Inc.
License: other-MIT-style-KHRONOS
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Materials.
.
THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
Files: debian/*
Copyright: © 2010-2013 Andreas Beckmann
License: GPL-3+
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
.
You should have received a copy of the GNU General Public License along
with this program. If not, see .
.
The GNU General Public License version 3 may be found on Debian systems
in /usr/share/common-licenses/GPL-3.
debian/source/ 0000755 0000000 0000000 00000000000 12236554105 010471 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 11450563746 011707 0 ustar 3.0 (quilt)
debian/t/ 0000755 0000000 0000000 00000000000 12236554105 007434 5 ustar debian/t/CL 0000777 0000000 0000000 00000000000 12060335263 010220 2../.. ustar debian/t/cl_hpp.cpp 0000644 0000000 0000000 00000000025 12060335263 011377 0 ustar #include
debian/t/opencl_h.c 0000644 0000000 0000000 00000000027 12060335263 011363 0 ustar #include
debian/t/opencl_h.cpp 0000644 0000000 0000000 00000000027 12060335263 011723 0 ustar #include
debian/t/Makefile 0000644 0000000 0000000 00000001121 12137056053 011066 0 ustar CFLAGS += -I. $(OPENCLFLAGS) -msse2 -msse
CXXFLAGS += -I. $(OPENCLFLAGS) -msse2 -msse
check:
$(MAKE) compile_opencl_h
$(MAKE) compile_opencl_h OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_1_APIS
$(MAKE) compile_opencl_h OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_0_APIS
$(MAKE) compile_cl_hpp
$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_1_APIS
$(MAKE) compile_cl_hpp OPENCLFLAGS=-DCL_USE_DEPRECATED_OPENCL_1_0_APIS
compile_opencl_h:
$(CC) $(CFLAGS) -c opencl_h.c
$(CXX) $(CXXFLAGS) -c opencl_h.cpp
compile_cl_hpp:
$(CXX) $(CXXFLAGS) -c cl_hpp.cpp
clean:
$(RM) *.o
debian/patches/ 0000755 0000000 0000000 00000000000 12236554105 010620 5 ustar debian/patches/AMD_extensions.patch 0000644 0000000 0000000 00000005401 12170524160 014514 0 ustar Author: Vincent Danjean
Subject: include AMD extensions in opencl-headers
Bug-Debian: http://bugs.debian.org/695136
--- a/cl_ext.h
+++ b/cl_ext.h
@@ -40,6 +40,9 @@
#include
#endif
+/* cl_khr_fp64 extension - no extension #define since it has no functions */
+#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
+
/* cl_khr_fp16 extension - no extension #define since it has no functions */
#define CL_DEVICE_HALF_FP_CONFIG 0x1033
@@ -170,9 +173,45 @@
#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006
/*********************************
+* cl_amd_device_memory_flags *
+*********************************/
+#define cl_amd_device_memory_flags 1
+
+#define CL_MEM_USE_PERSISTENT_MEM_AMD (1 << 6) // Alloc from GPU's CPU visible heap
+
+/* cl_device_info */
+#define CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT 0x4032
+
+/*********************************
* cl_amd_device_attribute_query *
*********************************/
#define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036
+#define CL_DEVICE_TOPOLOGY_AMD 0x4037
+#define CL_DEVICE_BOARD_NAME_AMD 0x4038
+#define CL_DEVICE_GLOBAL_FREE_MEMORY_AMD 0x4039
+#define CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD 0x4040
+#define CL_DEVICE_SIMD_WIDTH_AMD 0x4041
+#define CL_DEVICE_SIMD_INSTRUCTION_WIDTH_AMD 0x4042
+#define CL_DEVICE_WAVEFRONT_WIDTH_AMD 0x4043
+#define CL_DEVICE_GLOBAL_MEM_CHANNELS_AMD 0x4044
+#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANKS_AMD 0x4045
+#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANK_WIDTH_AMD 0x4046
+#define CL_DEVICE_LOCAL_MEM_SIZE_PER_COMPUTE_UNIT_AMD 0x4047
+#define CL_DEVICE_LOCAL_MEM_BANKS_AMD 0x4048
+
+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
+
+
+/**************************
+* cl_amd_offline_devices *
+**************************/
+#define CL_CONTEXT_OFFLINE_DEVICES_AMD 0x403F
#ifdef CL_VERSION_1_1
/***********************************
@@ -238,6 +277,11 @@
#define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0)
#define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1)
+ /* cl_ext_atomic_counters_32 and cl_ext_atomic_counters_64 extensions
+ * no extension #define since they have no functions
+ */
+ #define CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT 0x4032
+
/*********************************
* cl_qcom_ext_host_ptr extension
*********************************/
debian/patches/series 0000644 0000000 0000000 00000000025 12137056053 012031 0 ustar AMD_extensions.patch