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

@@ -19,7 +19,7 @@ class ISAACAPI Buffer
friend class CommandQueue;
friend class Kernel;
public:
Buffer(cl_mem Buffer);
Buffer(cl_mem Buffer, bool take_ownership = true);
Buffer(Context const & context, std::size_t size);
Context const & context() const;
bool operator<(Buffer const &) const;