diff mbox series

[2/7,OpenACC,libgomp,v5,stage1] Async re-work, other accel target updates

Message ID 88208441-5f20-bf75-834b-c5b47eaeb874@mentor.com
State New
Headers show
Series Async re-work | expand

Commit Message

Chung-Lin Tang Jan. 22, 2019, 2:52 p.m. UTC
This patch updates the 'version' libgomp plugin hook for intelmic and hsa to
return GOMP_PLUGIN_IF_VERSION instead of GOMP_VERSION.

Thanks,
Chung-Lin

     liboffloadmic/
     * plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_version):
     Update to return GOMP_PLUGIN_IF_VERSION.

     libgomp/
     * plugin/plugin-hsa.c (GOMP_OFFLOAD_version): Update to return
     GOMP_PLUGIN_IF_VERSION.
diff mbox series

Patch

Index: liboffloadmic/plugin/libgomp-plugin-intelmic.cpp
===================================================================
--- liboffloadmic/plugin/libgomp-plugin-intelmic.cpp	(revision 268142)
+++ liboffloadmic/plugin/libgomp-plugin-intelmic.cpp	(working copy)
@@ -340,7 +340,7 @@  offload_image (const void *target_image)
 extern "C" unsigned
 GOMP_OFFLOAD_version (void)
 {
-  return GOMP_VERSION;
+  return GOMP_PLUGIN_IF_VERSION;
 }
 
 extern "C" int
Index: libgomp/plugin/plugin-hsa.c
===================================================================
--- libgomp/plugin/plugin-hsa.c	(revision 268142)
+++ libgomp/plugin/plugin-hsa.c	(working copy)
@@ -204,7 +204,7 @@  GOMP_OFFLOAD_get_type (void)
 unsigned
 GOMP_OFFLOAD_version (void)
 {
-  return GOMP_VERSION;
+  return GOMP_PLUGIN_IF_VERSION;
 }
 
 /* Flag to decide whether print to stderr information about what is going on.