removing C++11 interface

This commit is contained in:
Philippe Tillet
2015-02-08 23:19:38 -05:00
parent 85fb438806
commit a6d7671831
21 changed files with 423 additions and 956 deletions

View File

@@ -176,11 +176,24 @@ array_expression array_expression::operator-()
array_expression array_expression::operator!()
{ return array_expression(*this, invalid_node(), op_element(OPERATOR_UNARY_TYPE_FAMILY, OPERATOR_NEGATE_TYPE), context_, INT_TYPE, shape_); }
//
void operation_cache::push_back(cl::CommandQueue & queue, cl::Kernel const & kernel, cl::NDRange const & offset, cl::NDRange const & global, cl::NDRange const & local, std::vector<cl::Event>* dependencies)
{
l_.push_back({queue, kernel, offset, global, local, dependencies});
}
void operation_cache::enqueue(std::list<cl::Event>* events)
{
for(infos & i : l_){
events->push_back(cl::Event());
i.queue.enqueueNDRangeKernel(i.kernel, i.offset, i.global, i.local, i.dependencies, &events->back());
}
}
//
std::shared_ptr<array_expression> expressions_tuple::create(array_expression const & s)
tools::shared_ptr<array_expression> expressions_tuple::create(array_expression const & s)
{
return std::shared_ptr<array_expression>(new array_expression(static_cast<array_expression const &>(s)));
return tools::shared_ptr<array_expression>(new array_expression(static_cast<array_expression const &>(s)));
}
expressions_tuple::expressions_tuple(data_type const & data, order_type order) : data_(data), order_(order)