Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add barrier CompletionFunction to memcpy_async synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
c0riolis committed Nov 20, 2020
1 parent 1e876bb commit 84e6493
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ parent: Asynchronous operations library
Defined in header [`<cuda/barrier>`](../../api/synchronization_library/barrier.md)

```c++
template<typename Shape, thread_scope Scope>
void memcpy_async(void * destination, void const * source, Shape size, barrier<Scope> & barrier); // (1)
template<typename Shape, thread_scope Scope, typename CompletionFunction>
void memcpy_async(void * destination, void const * source, Shape size, barrier<Scope, CompletionFunction> & barrier); // (1)

template<typename Group, typename Shape, thread_scope Scope>
void memcpy_async(Group const & group, void * destination, void const * source, Shape size, barrier<Scope> & barrier); // (2)
template<typename Group, typename Shape, thread_scope Scope, typename CompletionFunction>
void memcpy_async(Group const & group, void * destination, void const * source, Shape size, barrier<Scope, CompletionFunction> & barrier); // (2)
```
Defined in header [`<cuda/pipeline>`](../headers/pipeline.md)
```c++
template<typename Shape, thread_scope Scope>
void memcpy_async(void * destination, void const * source, Shape size, pipeline<Scope> & pipeline); // (3)
void memcpy_async(void * destination, void const * source, Shape size, pipeline<Scope> & pipeline); // (3)
template<typename Group, typename Shape, thread_scope Scope>
void memcpy_async(Group const & group, void * destination, void const * source, Shape size, pipeline<Scope> & pipeline); // (4)
void memcpy_async(Group const & group, void * destination, void const * source, Shape size, pipeline<Scope> & pipeline); // (4)
```

Asynchronously copies `size` bytes from the memory location pointed to by `source` to the memory location pointed to by `destination`.
Expand Down

0 comments on commit 84e6493

Please sign in to comment.