]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. _acc_memcpy_to_device: | |
7 | ||
8 | acc_memcpy_to_device -- Copy host memory to device memory. | |
9 | ********************************************************** | |
10 | ||
11 | Description | |
12 | This function copies host memory specified by host address of :samp:`{src}` to | |
13 | device memory specified by the device address :samp:`{dest}` for a length of | |
14 | :samp:`{bytes}` bytes. | |
15 | ||
16 | C/C++: | |
17 | .. list-table:: | |
18 | ||
19 | * - *Prototype*: | |
20 | - ``acc_memcpy_to_device(d_void *dest, h_void *src, size_t bytes);`` | |
21 | ||
22 | Reference: | |
23 | :openacc:`2.6`, section | |
3ed1b4ce | 24 | 3.2.31. |