diff mbox

[libgomp] Rewire OpenACC async

Message ID 8a82dd86-a4d8-28f7-8464-71a84b3c3071@codesourcery.com
State New
Headers show

Commit Message

Chung-Lin Tang May 18, 2016, 9:40 a.m. UTC
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.

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?

Thanks,
Chung-Lin

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

Comments

Jakub Jelinek May 18, 2016, 9:50 a.m. UTC | #1
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
diff mbox

Patch

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