diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2018-09-18 08:41:54 -0700 |
---|---|---|
committer | Cesar Philippidis <cesar@gcc.gnu.org> | 2018-09-18 08:41:54 -0700 |
commit | 2049befdd04a745048fa545a32319b4e2b7af6d0 (patch) | |
tree | 3350da1c21938ab90a1821d66840698bf9e0be1b /gcc | |
parent | 5e594075c8e0f05741b3c961959bf3a4c1f42e9b (diff) | |
download | gcc-2049befdd04a745048fa545a32319b4e2b7af6d0.zip gcc-2049befdd04a745048fa545a32319b4e2b7af6d0.tar.gz gcc-2049befdd04a745048fa545a32319b4e2b7af6d0.tar.bz2 |
[nvptx] Remove use of CUDA unified memory in libgomp
libgomp/
* plugin/plugin-nvptx.c (struct cuda_map): New.
(struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
h_tail with (cuda_map *) map.
(cuda_map_create): New function.
(cuda_map_destroy): New function.
(map_init): Update to use a linked list of cuda_map objects.
(map_fini): Likewise.
(map_pop): Likewise.
(map_push): Likewise. Return CUdeviceptr instead of void.
(init_streams_for_device): Remove stales references to ptx_stream
members.
(select_stream_for_async): Likewise.
(nvptx_exec): Update call to map_init.
From-SVN: r264397
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions