Skip to content

Commit

Permalink
Regards #3: Added missing comment entries for some stream parameters …
Browse files Browse the repository at this point in the history
…to memory copy functions.
  • Loading branch information
Eyal Rozenberg committed Jan 6, 2020
1 parent e502e1f commit b943a7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cuda/api/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ namespace detail {
* @param source A pointer to a a memory region of size @p num_bytes, either in
* host memory or on any CUDA device's global memory
* @param num_bytes The number of bytes to copy from @p source to @p destination
* @param stream_id A stream on which to enqueue the copy operation
*/
inline void copy(void *destination, const void *source, size_t num_bytes, stream::id_t stream_id)
{
Expand All @@ -274,6 +275,7 @@ inline void copy(void *destination, const void *source, size_t num_bytes, stream
* device's global memory
* @param source a value residing either in host memory or on any CUDA
* device's global memory
* @param stream_id A stream on which to enqueue the copy operation
*/
template <typename T>
inline void copy_single(T& destination, const T& source, stream::id_t stream_id)
Expand All @@ -297,6 +299,7 @@ inline void copy_single(T& destination, const T& source, stream::id_t stream_id)
* @param source A pointer to a a memory region of size @p num_bytes, either in
* host memory or on any CUDA device's global memory
* @param num_bytes The number of bytes to copy from @p source to @p destination
* @param stream A stream on which to enqueue the copy operation
*/
template <bool StreamIsOnCurrentDevice>
inline void copy(void *destination, const void *source, size_t num_bytes, stream_t<StreamIsOnCurrentDevice>& stream);
Expand Down

0 comments on commit b943a7c

Please sign in to comment.