]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libgomp, nvptx] Add error with recompilation hint for launch failure
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 11:42:29 +0000 (11:42 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2018 11:42:29 +0000 (11:42 +0000)
commit0778ac7258f2bd3ec9b6fa3e9d43489161c7cc6e
tree228f30ad516a6c3e25c474b2b38e70afb930256c
parent5fb2b8e843f4f2870fa77d28603b091ab6b66e9a
[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.

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