This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libgomp] Rewire OpenACC async


On Wed, May 18, 2016 at 05:40:33PM +0800, Chung-Lin Tang wrote:
> On 2016/5/17 5:00 PM, Jakub Jelinek wrote:
> > On Tue, May 17, 2016 at 04:56:42PM +0800, Chung-Lin Tang wrote:
> >> I assume that bumping GOMP_VERSION in include/gomp-constants.h would be enough?
> > 
> > I think so.
> > 
> > 	Jakub
> > 
> 
> How is this patch? I have added a comment to remind to adjust the version number
> when plugin interface changes are made.

Ok.

> And, if this approach to solve the plugin interface problem is okay, can I regard the
> device lock deadlock patches and async patch approved for trunk?

Yes.

> 	include/
> 	* gomp-constants.h (GOMP_VERSION): Increment to 1, add comment describe the
> 	need for increment this macro whenever the plugin interface is modified.
> 

> Index: gomp-constants.h
> ===================================================================
> --- gomp-constants.h	(revision 236363)
> +++ gomp-constants.h	(working copy)
> @@ -196,8 +196,10 @@ enum gomp_map_kind
>  /* Internal to libgomp.  */
>  #define GOMP_TARGET_FLAG_UPDATE		(1U << 31)
>  
> -/* Versions of libgomp and device-specific plugins.  */
> -#define GOMP_VERSION	0
> +/* Versions of libgomp and device-specific plugins.  GOMP_VERSION
> +   should be incremented whenever an ABI-incompatible change is introduced
> +   to the plugin interface defined in libgomp/libgomp.h.  */
> +#define GOMP_VERSION	1
>  #define GOMP_VERSION_NVIDIA_PTX 1
>  #define GOMP_VERSION_INTEL_MIC 0
>  #define GOMP_VERSION_HSA 0


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]