]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libgomp, nvptx] Move device property sampling from nvptx_exec to nvptx_open
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 11:42:19 +0000 (11:42 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 11:42:19 +0000 (11:42 +0000)
commit5fb2b8e843f4f2870fa77d28603b091ab6b66e9a
tree8ce060acb581a3136834102379693c1c71f66a26
parent62ebba73ccea5d84690e46657be695ccdaab1cec
[libgomp, nvptx] Move device property sampling from nvptx_exec to nvptx_open

Move sampling of device properties from nvptx_exec to nvptx_open, and assume
the sampling always succeeds.  This simplifies the default dimension
initialization code in nvptx_open.

2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
    Tom de Vries  <tdevries@suse.de>

* plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
max_threads_per_block and max_threads_per_multiprocessor fields.
(nvptx_open_device): Initialize new fields.
(nvptx_exec): Use num_sms, and new fields.

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