[libgomp, nvptx] Move device property sampling from nvptx_exec to nvptx_open
commit0c6c2f5fc239121f70334a587e371aab2c7a60a4
authorCesar Philippidis <cesar@codesourcery.com>
Thu, 26 Jul 2018 11:42:19 +0000 (26 04:42 -0700)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 26 Jul 2018 11:42:19 +0000 (26 11:42 +0000)
tree8ce060acb581a3136834102379693c1c71f66a26
parent328aa7876732da9bbf851f7b9309b1f6fda1cd9d
[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.

Co-Authored-By: Tom de Vries <tdevries@suse.de>
From-SVN: r262996
libgomp/ChangeLog
libgomp/plugin/plugin-nvptx.c