]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libgomp, nvptx] Add error with recompilation hint for launch failure
authorCesar Philippidis <cesar@codesourcery.com>
Thu, 26 Jul 2018 11:42:29 +0000 (04:42 -0700)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 26 Jul 2018 11:42:29 +0000 (11:42 +0000)
commit88a4654d03d0d05047aa168e45967ed2d94cb9ce
tree228f30ad516a6c3e25c474b2b38e70afb930256c
parent0c6c2f5fc239121f70334a587e371aab2c7a60a4
[libgomp, nvptx] Add error with recompilation hint for launch failure

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  <cesar@codesourcery.com>
    Tom de Vries  <tdevries@suse.de>

* 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.

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