C++: Some renaming; added possibility to pass buffers when constructing arrays

This commit is contained in:
Philippe Tillet
2015-06-23 09:38:34 -07:00
parent 0c9bf8da4e
commit 80bcbd095f
20 changed files with 64 additions and 34 deletions

View File

@@ -12,6 +12,11 @@ namespace isaac
namespace driver
{
CommandQueue::CommandQueue(cl::CommandQueue const & queue) : backend_(OPENCL), context_(queue.getInfo<CL_QUEUE_CONTEXT>()), device_(queue.getInfo<CL_QUEUE_DEVICE>()), h_(backend_)
{
*h_.cl = queue;
}
CommandQueue::CommandQueue(Context const & context, Device const & device, cl_command_queue_properties properties): backend_(device.backend_), context_(context), device_(device), h_(backend_)
{
switch(backend_)