diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-10-28 09:02:39 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-10-28 09:02:39 +0200 |
commit | 7324369a12e9abe3011f6a0cfd8ef48dd44c4729 (patch) | |
tree | 4508f21797eab3eccc7a20d91a4d188d55e33f78 /gcc/fortran/misc.c | |
parent | fdfcd5ecc51dc8e7252af21115f10946d490c55b (diff) | |
download | gcc-7324369a12e9abe3011f6a0cfd8ef48dd44c4729.zip gcc-7324369a12e9abe3011f6a0cfd8ef48dd44c4729.tar.gz gcc-7324369a12e9abe3011f6a0cfd8ef48dd44c4729.tar.bz2 |
target.c (struct gomp_coalesce_buf): New type.
* target.c (struct gomp_coalesce_buf): New type.
(MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
(gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
(gomp_copy_host2dev): Add CBUF argument, if copying into
the cached ranges, memcpy into buffer instead of copying
into device.
(gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
Add CBUF argument, pass it through to other calls.
(gomp_map_vars): Aggregate copies from host to device if small enough
and with small enough gaps in between into memcpy into a buffer and
fewer host to device copies from the buffer.
(gomp_update): Adjust gomp_copy_host2dev caller.
From-SVN: r254194
Diffstat (limited to 'gcc/fortran/misc.c')
0 files changed, 0 insertions, 0 deletions