]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Allow the accelerator to have more offloaded functions than the host
authorCesar Philippidis <cesar@codesourcery.com>
Sun, 7 Jul 2019 18:25:51 +0000 (11:25 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:49:59 +0000 (12:49 +0100)
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)

libgomp/ChangeLog.omp
libgomp/target.c

index 1d88bd54cd2b20070eb92e90467ad93810098fb5..00c58601336390414c360cbdd9a03717bdcbff5e 100644 (file)
@@ -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
index a4ed763d507ccb66f1ce7ee5657cc20b45d7b860..c81e5ababb74f2592218cce1206a6e8f049fc583 100644 (file)
@@ -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)