Added C BLAS1 test

This commit is contained in:
Philippe Tillet
2015-06-25 23:12:26 -07:00
parent b32de3ac76
commit b0cd25ac4b
8 changed files with 167 additions and 98 deletions

View File

@@ -23,18 +23,22 @@ namespace isaac
driver::Program& init(controller<expressions_tuple> const &);
public:
model(expression_type, numeric_type, predictors::random_forest const &, std::vector< tools::shared_ptr<base> > const &, driver::CommandQueue &);
model(expression_type, numeric_type, base const &, driver::CommandQueue &);
model(expression_type, numeric_type, predictors::random_forest const &, std::vector< tools::shared_ptr<base> > const &, driver::CommandQueue const &);
model(expression_type, numeric_type, base const &, driver::CommandQueue const &);
void execute(controller<expressions_tuple> const &);
templates_container const & templates() const;
void test() const
{ std::cout << queue_.device().backend() << std::endl;}
private:
templates_container templates_;
template_pointer fallback_;
tools::shared_ptr<predictors::random_forest> predictor_;
std::map<std::vector<int_t>, int> hardcoded_;
std::map<driver::Context, std::map<std::string, std::shared_ptr<driver::Program> > > programs_;
driver::CommandQueue & queue_;
driver::CommandQueue queue_;
};
typedef std::map<std::pair<expression_type, numeric_type>, tools::shared_ptr<model> > model_map_t;

View File

@@ -238,7 +238,7 @@ struct execution_options_type
{
if(queue_)
return *queue_;
return (driver::CommandQueue &)driver::queues[context][queue_id_];
return driver::queues[context][queue_id_];
}
std::list<driver::Event>* events;