diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2018-08-13 22:58:44 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2018-08-13 22:58:44 +0200 |
commit | bf43dbb4ee076ad74ea330fe87e457d20e297735 (patch) | |
tree | 515498d33951368cf997c5bf1790e6bea458b5cf /src/clpp11.hpp | |
parent | 3115c15db5a3b8fae0e9788cbcadaba91920af3c (diff) |
Made last operation in TRSV and TRSM asynchronous, making the events not null
Diffstat (limited to 'src/clpp11.hpp')
-rw-r--r-- | src/clpp11.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clpp11.hpp b/src/clpp11.hpp index 70da2329..94464990 100644 --- a/src/clpp11.hpp +++ b/src/clpp11.hpp @@ -729,9 +729,10 @@ class Buffer { } // Copies the contents of this buffer into another device buffer - void CopyToAsync(const Queue &queue, const size_t size, const Buffer<T> &destination) const { + void CopyToAsync(const Queue &queue, const size_t size, const Buffer<T> &destination, + EventPointer event = nullptr) const { CheckError(clEnqueueCopyBuffer(queue(), *buffer_, destination(), 0, 0, size*sizeof(T), 0, - nullptr, nullptr)); + nullptr, event)); } void CopyTo(const Queue &queue, const size_t size, const Buffer<T> &destination) const { CopyToAsync(queue, size, destination); |