diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2022-05-25 09:14:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 09:14:04 +0200 |
commit | d837b64269dae729e37e16b971f4b5c90ee33007 (patch) | |
tree | 82a42d54305d1fa8fe37c86196c293d53d0af9d4 | |
parent | 6b358e1be9c96d33d9fb28b24d82972c7dd7f41a (diff) | |
parent | 9ab1bf24e2c0107aa7fbc5018ea93f45c6408bb2 (diff) |
Merge pull request #438 from CNugteren/cupp11_api_inconsistency
Fix API inconsistency in cupp11.hpp
-rw-r--r-- | src/cupp11.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cupp11.hpp b/src/cupp11.hpp index ce765844..edcdc12f 100644 --- a/src/cupp11.hpp +++ b/src/cupp11.hpp @@ -647,7 +647,8 @@ public: } // 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(cuMemcpyDtoDAsync(destination(), *buffer_, size*sizeof(T), queue())); } void CopyTo(const Queue &queue, const size_t size, const Buffer<T> &destination) const { |