[nvptx] Add PTX_WARP_SIZE

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 17 December 2018 21:27 EST

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

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

9aa4eae702b [nvptx] Add PTX_WARP_SIZE
gcc/ChangeLog | 5 +++++
gcc/config/nvptx/nvptx.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share