diff options
author | Cesar Philippidis <cesar@codesourcery.com> | 2019-07-07 11:25:51 -0700 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-03-03 12:49:59 +0100 |
commit | 57b0df6d7a56aaf9797b9ab568b0e704dd37be7e (patch) | |
tree | b3288469a9692901c2f821e6c5ba1092c855002e /libgomp | |
parent | 1b331358057a3a94225b9dd0d00b56c6720c3162 (diff) | |
download | gcc-57b0df6d7a56aaf9797b9ab568b0e704dd37be7e.zip gcc-57b0df6d7a56aaf9797b9ab568b0e704dd37be7e.tar.gz gcc-57b0df6d7a56aaf9797b9ab568b0e704dd37be7e.tar.bz2 |
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.
(cherry picked from openacc-gcc-9-branch commit
1d39156f663fa9913446dadfa5c4bb77a92aa494)
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog.omp | 5 | ||||
-rw-r--r-- | libgomp/target.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 1d88bd5..00c5860 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -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 diff --git a/libgomp/target.c b/libgomp/target.c index a4ed763..c81e5ab 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -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) |