]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Remove use of CUDA unified memory in libgomp
authorcesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 15:41:54 +0000 (15:41 +0000)
committercesar <cesar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Sep 2018 15:41:54 +0000 (15:41 +0000)
commit4105f94d52fc39eb8f8567fe1f71e96344fc9ebf
tree3350da1c21938ab90a1821d66840698bf9e0be1b
parent68fe545adc24cb4a4f5dfd5a327a644c2abc3319
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264397 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog
libgomp/plugin/plugin-nvptx.c