I'd like to suggest an enhancement to the C++ bindings to aid usability.
Currently there are several member functions that take a vector of devices. For example:
To use the above constructor with a single device, it is first necessary to make a vector containing the single device. I'd like to suggest adding matching functions that take a single device (where this makes sense), thereby avoiding the construction of a temporary vectorCode :Context(const VECTOR_CLASS<Device>& devices, ...)
So for the above example
Code :Context(const Device& device, ...)
Client code can then change from
toCode :cl::Context context(vector<cl::Device>(1, device));
Clearer and more efficient.Code :cl::Context context(device);
Does anyone have any comments on this?
What is the best way to submit this request?