Merge branch 'master' into auto-coalesce

This commit is contained in:
Philippe Tillet
2019-10-18 16:21:28 -04:00
22 changed files with 685 additions and 139 deletions

View File

@@ -175,11 +175,7 @@ function::caller function::autotune(driver::stream* stream, const grid_fn_ty& gr
auto ir = make_ir(parser);
// binary code-gen
std::unique_ptr<driver::module> bin;
try{
bin = make_bin(*ir, stream->context(), opt);
}catch(const std::runtime_error& e) {
return;
}
bin = make_bin(*ir, stream->context(), opt);
// kernel uses too much resources
if(!bin)
return;