Home | History | Annotate | Download | only in CL

Lines Matching defs:cl

36  *         cl
47 * The interface is contained with a single C++ header file \em cl.hpp and all
48 * definitions are contained within the namespace \em cl. There is no additional
49 * requirement to include \em cl.h and to use either the C++ or original C
50 * bindings it is enough to simply include \em cl.hpp.
59 * http://www.khronos.org/registry/cl/specs/opencl-cplusplus-1.1.pdf
72 * #include <OpenCL/cl.hpp>
74 * #include <CL/cl.hpp>
92 * std::vector<cl::Platform> platforms;
93 * cl::Platform::get(&platforms);
101 * cl::Context context(CL_DEVICE_TYPE_CPU, properties);
103 * std::vector<cl::Device> devices = context.getInfo<CL_CONTEXT_DEVICES>();
105 * cl::Program::Sources source(1,
107 * cl::Program program_ = cl::Program(context, source);
110 * cl::Kernel kernel(program_, "hello", &err);
112 * cl::Event event;
113 * cl::CommandQueue queue(context, devices[0], 0, &err);
116 * cl::NullRange,
117 * cl::NDRange(4,4),
118 * cl::NullRange,
124 * catch (cl::Error err) {
147 #include <CL/cl_d3d10.h>
153 #include <CL/cl_ext.h>
161 #include <CL/opencl.h>
184 /*! \namespace cl
189 namespace cl {
216 /*! Create a new CL error exception for a given error code
414 typedef cl::string STRING_CLASS;
421 #define VECTOR_CLASS cl::vector
683 struct size_t : public cl::vector< ::size_t, N> { };
840 F(cl_event_info, CL_EVENT_COMMAND_QUEUE, cl::CommandQueue) \
856 F(cl_mem_info, CL_MEM_CONTEXT, cl::Context) \
867 F(cl_sampler_info, CL_SAMPLER_CONTEXT, cl::Context) \
873 F(cl_program_info, CL_PROGRAM_CONTEXT, cl::Context) \
887 F(cl_kernel_info, CL_KERNEL_CONTEXT, cl::Context) \
888 F(cl_kernel_info, CL_KERNEL_PROGRAM, cl::Program) \
891 F(cl_kernel_work_group_info, CL_KERNEL_COMPILE_WORK_GROUP_SIZE, cl::size_t<3>) \
894 F(cl_command_queue_info, CL_QUEUE_CONTEXT, cl::Context) \
895 F(cl_command_queue_info, CL_QUEUE_DEVICE, cl::Device) \
914 F(cl_mem_info, CL_MEM_ASSOCIATED_MEMOBJECT, cl::Memory) \
920 F(cl_event_info, CL_EVENT_CONTEXT, cl::Context)
1326 * \param devices returns a vector of OpenCL D3D10 devices found. The cl::Device
1334 * returned by cl::getDevices. This can be used by the application to
1338 * other than CL_SUCCESS is generated, then cl::Error exception is
1532 __GET_INFO_HELPER_WITH_RETAIN(cl::Context)
1627 __GET_INFO_HELPER_WITH_RETAIN(cl::Event)
1736 __GET_INFO_HELPER_WITH_RETAIN(cl::Memory)
2202 __GET_INFO_HELPER_WITH_RETAIN(cl::Sampler)
2381 __GET_INFO_HELPER_WITH_RETAIN(cl::Kernel)
2541 __GET_INFO_HELPER_WITH_RETAIN(cl::Program)
3116 __GET_INFO_HELPER_WITH_RETAIN(cl::CommandQueue)
4009 } // namespace cl