[libgomp, nvptx] Add error with recompilation hint for launch failure

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 26 July 2018 11:42 EDT

Currently, when a kernel is lauched with too many workers, it results in a cuda launch failure. This is triggered f.i. for parallel-loop-1.c at -O0 on a Quadro M1200.

This patch detects this situation, and errors out with a hint on how to fix it.

Build and reg-tested on x86_64 with nvptx accelerator.

2018-07-26 Cesar Philippidis Tom de Vries

- plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have sufficient resources to launch a kernel, and give a hint on how to fix it.

0778ac7258f [libgomp, nvptx] Add error with recompilation hint for launch failure
libgomp/ChangeLog | 7 +++++++
libgomp/plugin/plugin-nvptx.c | 15 +++++++++++++++
2 files changed, 22 insertions(+)

Upstream: gcc.gnu.org


  • Share