Lines Matching defs:context

1633     static cl_int retain(cl_context context)
1634 { return ::clRetainContext(context); }
1635 static cl_int release(cl_context context)
1636 { return ::clReleaseContext(context); }
1732 static cl_uint getContextPlatformVersion(cl_context context)
1735 // device and obtain its context
1737 clGetContextInfo(context, CL_CONTEXT_DEVICES, 0, NULL, &size);
1741 clGetContextInfo(context, CL_CONTEXT_DEVICES, size, devices.data(), NULL);
2074 /*! \brief Create the default context.
2113 /*! \brief Returns the first device on the default context.
2354 /*! \brief Create the default context.
2734 /*! \brief Create the default context from the default device type in the default platform.
2772 /*! \brief Create the default context from a provided Context.
2794 /*! \brief Constructs a context including a list of specified devices.
2855 /*! \brief Constructs a context including all or a subset of devices of a specified type.
2971 /*! \brief Returns a singleton context including all devices of CL_DEVICE_TYPE_DEFAULT.
2986 * Modify the default context to be used by
2989 * @return updated default context.
3007 explicit Context(const cl_context& context, bool retainObject = false) :
3008 detail::Wrapper<cl_type>(context, retainObject) { }
3105 Context context = Context::getDefault(&error);
3112 default_ = context.getInfo<CL_CONTEXT_DEVICES>()[0];
3262 /*! \brief Constructs a user event on a given context.
3267 const Context& context,
3272 context(),
3571 explicit SVMAllocator(cl::Context context) :
3572 context_(context)
3648 * This is the minimum of the maximum sizes of all devices in the context.
3812 /*! \brief Constructs a Buffer in a specified context.
3820 const Context& context,
3827 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error);
3835 /*! \brief Constructs a Buffer in the default context.
3852 Context context = Context::getDefault(err);
3854 object_ = ::clCreateBuffer(context(), flags, size, host_ptr, &error);
3891 Context context = Context::getDefault(err);
3894 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
3896 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);
3914 * \brief Construct a Buffer from a host container via iterators using a specified context.
3919 Buffer(const Context &context, IteratorType startIterator, IteratorType endIterator,
4025 /*! \brief Constructs a BufferD3D10, in a specified context, from a
4031 const Context& context,
4037 cl_context context, cl_mem_flags flags, ID3D10Buffer* buffer,
4041 vector<cl_context_properties> props = context.getInfo<CL_CONTEXT_PROPERTIES>();
4055 context(),
4131 /*! \brief Constructs a BufferGL in a specified context, from a given
4137 const Context& context,
4144 context(),
4228 /*! \brief Constructs a BufferRenderGL in a specified context, from a given
4234 const Context& context,
4241 context(),
4410 /*! \brief Constructs a 1D Image in a specified context.
4415 const Context& context,
4430 context(),
4503 const Context& context,
4519 context(),
4587 const Context& context,
4607 context(),
4680 /*! \brief Constructs a 2D Image in a specified context.
4685 const Context& context,
4700 cl_uint version = detail::getContextPlatformVersion(context());
4722 context(),
4739 context(), flags,&format, width, height, row_pitch, host_ptr, &error);
4756 const Context& context,
4778 context(),
4806 const Context& context,
4844 context(),
4925 /*! \brief Constructs an Image2DGL in a specified context, from a given
4931 const Context& context,
4940 context(),
5016 const Context& context,
5040 context(),
5109 /*! \brief Constructs a 3D Image in a specified context.
5114 const Context& context,
5131 cl_uint version = detail::getContextPlatformVersion(context());
5155 context(),
5172 context(), flags, &format, width, height, depth, row_pitch,
5247 /*! \brief Constructs an Image3DGL in a specified context, from a given
5253 const Context& context,
5262 context(),
5339 const Context& context,
5348 context(),
5422 /*! \brief Constructs a Pipe in a specified context.
5425 * @param context Context in which to create the pipe.
5432 const Context& context,
5440 object_ = ::clCreatePipe(context(), flags, packet_size, max_packets, nullptr, &error);
5448 /*! \brief Constructs a Pipe in a the default context.
5463 Context context = Context::getDefault(err);
5466 object_ = ::clCreatePipe(context(), flags, packet_size, max_packets, nullptr, &error);
5565 /*! \brief Constructs a Sampler in a specified context.
5570 const Context& context,
5585 context(),
5595 context(),
6072 * in the context associated with kernel support it.
6076 * if no devices in the context support fine-grained system SVM.
6178 Context context = Context::getDefault(err);
6181 context(), (cl_uint)1, &strings, &length, &error);
6208 const Context& context,
6219 context(), (cl_uint)1, &strings, &length, &error);
6245 * Create a program from a vector of source strings and the default context.
6253 Context context = Context::getDefault(err);
6271 context(), (cl_uint)n, strings.data(), lengths.data(), &error);
6280 * Create a program from a vector of source strings and a provided context.
6284 const Context& context,
6306 context(), (cl_uint)n, strings.data(), lengths.data(), &error);
6327 Context context = Context::getDefault(err);
6332 context(), static_cast<const void*>(IL.data()), IL.size(), &error);
6342 context(), static_cast<const void*>(IL.data()), IL.size(), &error);
6372 * for a specific context.
6376 const Context& context,
6386 context(), static_cast<const void*>(IL.data()), IL.size(), &error);
6396 context(), static_cast<const void*>(IL.data()), IL.size(), &error);
6426 * \param context A valid OpenCL context in which to construct the program.
6436 * CL_INVALID_CONTEXT if context is not a valid context.
6439 * CL_INVALID_DEVICE if OpenCL devices listed in devices are not in the list of devices associated with context.
6444 const Context& context,
6489 context(), (cl_uint) devices.size(),
6508 const Context& context,
6523 context(),
7004 Context context = Context::getDefault(&error);
7011 default_ = CommandQueue(context, device, 0, &default_error_);
7054 Context context = Context::getDefault(&error);
7063 Device device = context.getInfo<CL_CONTEXT_DEVICES>()[0];
7069 cl_uint version = detail::getContextPlatformVersion(context());
7084 context(), device(), queue_properties, &error);
7099 context(), device(), properties, &error);
7120 Context context = Context::getDefault(&error);
7129 Device device = context.getInfo<CL_CONTEXT_DEVICES>()[0];
7135 cl_uint version = detail::getContextPlatformVersion(context());
7150 context(), device(), queue_properties, &error);
7161 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
7174 * \brief Constructs a CommandQueue for an implementation defined device in the given context
7178 const Context& context,
7185 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
7200 cl_uint version = detail::getContextPlatformVersion(context());
7215 context(), devices[0](), queue_properties, &error);
7230 context(), devices[0](), properties, &error);
7241 * \brief Constructs a CommandQueue for an implementation defined device in the given context
7245 const Context& context,
7252 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
7267 cl_uint version = detail::getContextPlatformVersion(context());
7281 context(), devices[0](), queue_properties, &error);
7292 context(), devices[0](), static_cast<cl_command_queue_properties>(properties), &error);
7303 * \brief Constructs a CommandQueue for a passed device and context
7307 const Context& context,
7318 cl_uint version = detail::getContextPlatformVersion(context());
7332 context(), device(), queue_properties, &error);
7343 context(), device(), properties, &error);
7354 * \brief Constructs a CommandQueue for a passed device and context
7358 const Context& context,
7369 cl_uint version = detail::getContextPlatformVersion(context());
7383 context(), device(), queue_properties, &error);
7394 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
8628 cl_context context = getInfo<CL_QUEUE_CONTEXT>();
8661 cl_context context = getInfo<CL_QUEUE_CONTEXT>();
8742 * Default construct device command queue on default context and device
8747 cl::Context context = cl::Context::getDefault();
8756 context(), device(), queue_properties, &error);
8765 * Create a device command queue for a specified device in the passed context.
8768 const Context& context,
8780 context(), device(), queue_properties, &error);
8789 * Create a device command queue for a specified device in the passed context.
8792 const Context& context,
8807 context(), device(), queue_properties, &error);
8882 * in the default context and of the default size.
8890 cl::Context context = cl::Context::getDefault();
8900 context(), device(), queue_properties, &error));
8917 const Context &context, const Device &device, cl_int *err = nullptr)
8928 context(), device(), queue_properties, &error));
8945 const Context &context, const Device &device, cl_uint queueSize, cl_int *err = nullptr)
8957 context(), device(), queue_properties, &error));
8976 static DeviceCommandQueue updateDefault(const Context &context, const Device &device, const DeviceCommandQueue &default_queue, cl_int *err = nullptr)
8979 error = clSetDefaultDeviceCommandQueue(context.get(), device.get(), default_queue.get());
9015 const Context &context,
9039 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
9041 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);
9050 CommandQueue queue(context, 0, &error);
9089 Context context = queue.getInfo<CL_QUEUE_CONTEXT>();
9092 object_ = ::clCreateBuffer(context(), flags, size, static_cast<DataType*>(&*startIterator), &error);
9095 object_ = ::clCreateBuffer(context(), flags, size, 0, &error);