summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2022-05-25 09:14:04 +0200
committerGitHub <noreply@github.com>2022-05-25 09:14:04 +0200
commitd837b64269dae729e37e16b971f4b5c90ee33007 (patch)
tree82a42d54305d1fa8fe37c86196c293d53d0af9d4
parent6b358e1be9c96d33d9fb28b24d82972c7dd7f41a (diff)
parent9ab1bf24e2c0107aa7fbc5018ea93f45c6408bb2 (diff)
Merge pull request #438 from CNugteren/cupp11_api_inconsistency
Fix API inconsistency in cupp11.hpp
-rw-r--r--src/cupp11.hpp3
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 {