This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [OpenACC 10/11] remove plugin restriction
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Bernd Schmidt <bschmidt at redhat dot com>, Jason Merrill <jason at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 21 Oct 2015 15:51:42 -0400
- Subject: Re: [OpenACC 10/11] remove plugin restriction
- Authentication-results: sourceware.org; auth=none
- References: <5627DD78 dot 9040302 at acm dot org>
Here's another obvious patch. The ptx plugin no longer needs to barf on gang or
worker dimensions of non-unity.
nathan
2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
* plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
dimensions.
Index: libgomp/plugin/plugin-nvptx.c
===================================================================
--- libgomp/plugin/plugin-nvptx.c (revision 228969)
+++ libgomp/plugin/plugin-nvptx.c (working copy)
@@ -902,13 +902,6 @@ nvptx_exec (void (*fn), size_t mapnum, v
if (targ_fn->launch->dim[i])
dims[i] = targ_fn->launch->dim[i];
- if (dims[GOMP_DIM_GANG] != 1)
- GOMP_PLUGIN_fatal ("non-unity num_gangs (%d) not supported",
- dims[GOMP_DIM_GANG]);
- if (dims[GOMP_DIM_WORKER] != 1)
- GOMP_PLUGIN_fatal ("non-unity num_workers (%d) not supported",
- dims[GOMP_DIM_WORKER]);
-
/* This reserves a chunk of a pre-allocated page of memory mapped on both
the host and the device. HP is a host pointer to the new chunk, and DP is
the corresponding device pointer. */