]> git.ipfire.org Git - thirdparty/gcc.git/commit
[nvptx] Add PTX_WARP_SIZE
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2018 21:27:09 +0000 (21:27 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Dec 2018 21:27:09 +0000 (21:27 +0000)
commit9aa4eae702bae033d825bf0bd63dcc1e3d9e0b75
treea027e58f13ff1383a8779e730addbd3d2a950640
parentca724093ee6ec821ec11a42a149c8a412d6cfc04
[nvptx] Add PTX_WARP_SIZE

Add PTX_WARP_SIZE constant and use it in nvptx_simt_vf.  The function
nvptx_simt_vf is used for OpenMP, and using PTX_WARP_SIZE here decouples the
OpenMP support from the PTX_VECTOR_LENGTH constant used in OpenACC support.

Build and reg-tested on x86_64 with nvptx accelerator.

2018-12-17  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (PTX_WARP_SIZE): Define.
(nvptx_simt_vf): Return PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.

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