gcc/libgomp
Tom de Vries 4cdfee3f20 [libgomp, nvptx] Handle per-function max-threads-per-block in default dims
Currently parallel-loop-1.c fails at -O0 on a Quadro M1200, because one of the
kernel launch configurations exceeds the resources available in the device, due
to the default dimensions chosen by the runtime.

This patch fixes that by taking the per-function max_threads_per_block into
account when using the default dimensions.

2018-07-30  Tom de Vries  <tdevries@suse.de>

	* plugin/plugin-nvptx.c (MIN, MAX): Redefine.
	(nvptx_exec): Ensure worker and vector default dims don't exceed
	targ_fn->max_threads_per_block.

From-SVN: r263062
2018-07-30 08:17:26 +00:00
..
config Update copyright years. 2018-01-03 11:03:58 +01:00
plugin [libgomp, nvptx] Handle per-function max-threads-per-block in default dims 2018-07-30 08:17:26 +00:00
testsuite re PR middle-end/86660 (libgomp.c++/for-15.C ICEs with nvptx offloading) 2018-07-26 18:12:58 +02:00
ChangeLog [libgomp, nvptx] Handle per-function max-threads-per-block in default dims 2018-07-30 08:17:26 +00:00
ChangeLog.graphite
Makefile.am
Makefile.in re PR fortran/84381 (replace non-std 'call abort' by 'stop 1' in gfortran testsuite) 2018-03-25 16:00:52 +00:00
acinclude.m4 Enable building libgomp with Intel CET 2017-11-17 22:22:09 +01:00
aclocal.m4
affinity.c Update copyright years. 2018-01-03 11:03:58 +01:00
alloc.c Update copyright years. 2018-01-03 11:03:58 +01:00
atomic.c Update copyright years. 2018-01-03 11:03:58 +01:00
barrier.c Update copyright years. 2018-01-03 11:03:58 +01:00
config.h.in
configure Regenerate configure of target libraries 2018-04-24 09:45:26 -07:00
configure.ac Enable building libgomp with Intel CET 2017-11-17 22:22:09 +01:00
configure.tgt
critical.c Update copyright years. 2018-01-03 11:03:58 +01:00
env.c [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
error.c Update copyright years. 2018-01-03 11:03:58 +01:00
fortran.c Update copyright years. 2018-01-03 11:03:58 +01:00
hashtab.h Update copyright years. 2018-01-03 11:03:58 +01:00
icv-device.c Update copyright years. 2018-01-03 11:03:58 +01:00
icv.c Update copyright years. 2018-01-03 11:03:58 +01:00
iter.c Update copyright years. 2018-01-03 11:03:58 +01:00
iter_ull.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.c Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp-plugin.h Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp.h Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
libgomp.map Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
libgomp.spec.in
libgomp.texi libgomp.texi (Top): Move www.openmp.org to https. 2018-06-24 20:38:14 +00:00
libgomp_f.h.in Update copyright years. 2018-01-03 11:03:58 +01:00
libgomp_g.h Update copyright years. 2018-01-03 11:03:58 +01:00
lock.c Update copyright years. 2018-01-03 11:03:58 +01:00
loop.c Update copyright years. 2018-01-03 11:03:58 +01:00
loop_ull.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-async.c [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-cuda.c [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-host.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-init.c Update copyright years. 2018-01-03 11:03:58 +01:00
oacc-int.h [openacc] Factor out async argument utility functions 2018-05-09 13:52:49 +00:00
oacc-mem.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
oacc-parallel.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
oacc-plugin.c [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
oacc-plugin.h [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
omp.h.in re PR libgomp/84096 (Wrong prototype for omp_init_nest_lock_with_hint() in "omp.h.in") 2018-01-30 00:38:01 +01:00
omp_lib.f90.in Update copyright years. 2018-01-03 11:03:58 +01:00
omp_lib.h.in Update copyright years. 2018-01-03 11:03:58 +01:00
openacc.f90 Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
openacc.h Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
openacc_lib.h Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
ordered.c Update copyright years. 2018-01-03 11:03:58 +01:00
parallel.c Update copyright years. 2018-01-03 11:03:58 +01:00
priority_queue.c Update copyright years. 2018-01-03 11:03:58 +01:00
priority_queue.h Update copyright years. 2018-01-03 11:03:58 +01:00
sections.c Update copyright years. 2018-01-03 11:03:58 +01:00
secure_getenv.h Update copyright years. 2018-01-03 11:03:58 +01:00
single.c Update copyright years. 2018-01-03 11:03:58 +01:00
splay-tree.c Update copyright years. 2018-01-03 11:03:58 +01:00
splay-tree.h Update copyright years. 2018-01-03 11:03:58 +01:00
target.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
task.c Update copyright years. 2018-01-03 11:03:58 +01:00
taskloop.c Update copyright years. 2018-01-03 11:03:58 +01:00
team.c Update copyright years. 2018-01-03 11:03:58 +01:00
work.c Update copyright years. 2018-01-03 11:03:58 +01:00