Implemented simple operation cache

This commit is contained in:
Philippe Tillet
2015-02-01 23:56:05 -05:00
parent 535706f35a
commit 2afc574724
17 changed files with 90 additions and 57 deletions

View File

@@ -147,7 +147,7 @@ namespace atidlas
}
/** @brief Executes a array_expression on the given models map*/
void execute(atidlas::array_expression & array_expression, model_map_t & models)
void execute(atidlas::array_expression & array_expression, model_map_t & models, operation_cache * cache)
{
cl::Context const & context = array_expression.context();
size_t rootidx = array_expression.root();
@@ -215,7 +215,7 @@ namespace atidlas
}
/*-----Compute final expression-----*/
models[std::make_pair(final_type, dtype)]->execute(array_expression);
models[std::make_pair(final_type, dtype)]->execute(array_expression, cache);
}
}