From 8fa310efa11254ed430d7e5dca80333a612b699e Mon Sep 17 00:00:00 2001
From: Cesar Philippidis <cesar@codesourcery.com>
Date: Sun, 7 Jul 2019 11:25:51 -0700
Subject: [PATCH 3/3] Allow the accelerator to have more offloaded functions
than the host
libgomp/
* target.c (gomp_load_image_to_device): Allow the accelerator to
possess more offloaded functions than the host.
---
libgomp/ChangeLog.openacc | 5 +++++
libgomp/target.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
@@ -1,3 +1,8 @@
+2019-07-10 Cesar Philippidis <cesar@codesourcery.com>
+
+ * target.c (gomp_load_image_to_device): Allow the accelerator to
+ possess more offloaded functions than the host.
+
2019-07-10 Julian Brown <julian@codesourcery.com>
* oacc-parallel.c (GOACC_enter_exit_data): Fix optional arguments for
@@ -2131,7 +2131,7 @@ gomp_load_image_to_device (struct gomp_device_descr *devicep, unsigned version,
= devicep->load_image_func (devicep->target_id, version,
target_data, &target_table);
- if (num_target_entries != num_funcs + num_vars)
+ if (num_target_entries < num_funcs + num_vars)
{
gomp_mutex_unlock (&devicep->lock);
if (is_register_lock)
--
2.22.0