Driver: Fixed issue in ownership handling for BLAS

This commit is contained in:
Philippe Tillet
2015-07-26 21:13:28 -07:00
parent 16d381dfc6
commit 4715723e61
18 changed files with 51 additions and 62 deletions

View File

@@ -16,7 +16,7 @@ namespace isaac
namespace driver
{
Program::Program(Context const & context, std::string const & source) : backend_(context.backend_), context_(context), source_(source), h_(backend_)
Program::Program(Context const & context, std::string const & source) : backend_(context.backend_), context_(context), source_(source), h_(backend_, context.h_.has_ownership())
{
// std::cout << source << std::endl;
std::string cache_path = context.cache_path_;