diff --git a/lib/driver/module.cc b/lib/driver/module.cc index 90339c418..1ccfd4091 100755 --- a/lib/driver/module.cc +++ b/lib/driver/module.cc @@ -330,15 +330,13 @@ cu_module::cu_module(driver::device* device, std::string const & source) : modul dispatch::cuModuleLoadDataEx(&*cu_, ptx_.data(), 5, opt, optval); std::string err(_err); std::string log(_log); - -// std::cout << log << std::endl; - std::smatch match; - std::regex expr ("\\b([0-9]+) bytes spill"); - spilled_ = 0; - while (std::regex_search(log,match,expr)){ - spilled_ += std::stoi(match[1]); - log = match.suffix(); - } +// std::smatch match; +// std::regex expr ("\\b([0-9]+) bytes spill"); +// spilled_ = 0; +// while (std::regex_search(log,match,expr)){ +// spilled_ += std::stoi(match[1]); +// log = match.suffix(); +// } } catch(exception::cuda::invalid_ptx const &){ //#ifdef TRITON_LOG_PTX_ERROR diff --git a/lib/runtime/function.cc b/lib/runtime/function.cc index 2b7062012..3fcf74e66 100644 --- a/lib/runtime/function.cc +++ b/lib/runtime/function.cc @@ -251,8 +251,8 @@ std::unique_ptr function::make_bin(ir::module &module, driver::d // ir::print(module, std::cout); isel.visit(module, *llvm); std::unique_ptr res(driver::module::create(device, std::move(llvm))); - if(res->spilled() > 256) - throw exception::out_of_registers(); +// if(res->spilled() > 256) +// throw exception::out_of_registers(); return res; }