aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorCesar Philippidis <cesar@codesourcery.com>2016-11-02 15:10:02 -0700
committerCesar Philippidis <cesar@gcc.gnu.org>2016-11-02 15:10:02 -0700
commit6668eb4593253eab2677d844c95b3be64487e4cb (patch)
tree4b6752f6e52b937b8a95a6f6e537ef42923f160b /gcc
parentbd17a9dfab9ac07061cc3abdbfe2ab6cfa68f4d8 (diff)
downloadgcc-6668eb4593253eab2677d844c95b3be64487e4cb.zip
gcc-6668eb4593253eab2677d844c95b3be64487e4cb.tar.gz
gcc-6668eb4593253eab2677d844c95b3be64487e4cb.tar.bz2
nvptx.c (PTX_GANG_DEFAULT): Set to zero.
gcc/ * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero. libgomp/ * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes to determine default geometry. * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang dimension. Co-Authored-By: Nathan Sidwell <nathan@acm.org> From-SVN: r241803
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nvptx/nvptx.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5e98b98..2debfb6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
+ Nathan Sidwell <nathan@acm.org>
+
+ * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
+
2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
* config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 80fa9ae..782bbde 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -4174,7 +4174,7 @@ nvptx_expand_builtin (tree exp, rtx target, rtx ARG_UNUSED (subtarget),
/* Define dimension sizes for known hardware. */
#define PTX_VECTOR_LENGTH 32
#define PTX_WORKER_LENGTH 32
-#define PTX_GANG_DEFAULT 32
+#define PTX_GANG_DEFAULT 0 /* Defer to runtime. */
/* Validate compute dimensions of an OpenACC offload or routine, fill
in non-unity defaults. FN_LEVEL indicates the level at which a