[DOCS] Added matrix multiplication tutorial

This commit is contained in:
Philippe Tillet
2021-03-14 18:49:59 -04:00
parent f4fb209dad
commit 183878dce5
9 changed files with 395 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ void module::set_value(const std::string& name, ir::basic_block *block, ir::valu
if(it != metadatas_.end()){
x->set_metadata(it->second.first, it->second.second);
}
value->set_name(name);
// value->set_name(name);
}
void module::set_value(const std::string& name, ir::value *value){

View File

@@ -288,6 +288,9 @@ function::function(const std::string& src, const options_t &opt, driver::device
// find indices of autotune keys
for(const std::string& name: tune_key){
auto pred = [&](ir::argument* arg) { return arg->get_name() == name; };
// std::cout << "----" << std::endl;
// for(ir::argument* arg: args)
// std::cout << arg->get_name() << std::endl;
auto it = std::find_if(args.begin(), args.end(), pred);
if(it == args.end())
throw std::runtime_error(name + " is not a valid argument name");