Move pr66680.f90 to libgomp
[gcc.git] / libgomp / ChangeLog
index 4e0cddb4e286e0c51bd53712812c6b9bd16bea30..dbe181549c3084c11005cce0abc346eb98b45cc3 100644 (file)
@@ -1,3 +1,309 @@
+2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR fortran/66680
+       * testsuite/libgomp.fortran/pr66680.f90: New test.
+
+2016-01-07  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/68960
+       * testsuite/libgomp.c/pr68960.c: New test.
+
+2016-01-06  Nathan Sidwell  <nathan@acm.org>
+
+       * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
+       * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
+
+2016-01-04  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+       * libgomp.texi: Bump @copying's copyright year.
+
+2015-12-31  Nathan Sidwell  <nathan@acm.org>
+
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
+       dg-additional-options syntax.
+       * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
+
+2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
+
+       * libgomp.h (REFCOUNT_LINK): Define.
+       (struct splay_tree_key_s): Add link_key.
+       * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
+       Replace target address of the pointer with target address of newly
+       mapped object in the splay tree.  Set link pointer on target to the
+       device address of the mapped object.
+       (gomp_unmap_vars): Restore target address of the pointer in the splay
+       tree for REFCOUNT_LINK objects after unmapping.
+       (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
+       declare target link" objects.
+       (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
+       "omp declare target link" objects, which were mapped for the image.
+       (gomp_exit_data): Restore target address of the pointer in the splay
+       tree for REFCOUNT_LINK objects after unmapping.
+       * testsuite/libgomp.c/target-link-1.c: New file.
+
+2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
+
+       * libgomp.h (gomp_device_state): New enum.
+       (struct gomp_device_descr): Replace is_initialized with state.
+       (gomp_fini_device): Remove declaration.
+       * oacc-host.c (host_dispatch): Use state instead of is_initialized.
+       * oacc-init.c (acc_init_1): Use state instead of is_initialized.
+       (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
+       (acc_set_device_type): Use state instead of is_initialized.
+       (acc_set_device_num): Likewise.
+       * target.c (resolve_device): Use state instead of is_initialized.
+       Do not initialize finalized device.
+       (gomp_map_vars): Do nothing if device is finalized.
+       (gomp_unmap_vars): Likewise.
+       (gomp_update): Likewise.
+       (GOMP_offload_register_ver): Use state instead of is_initialized.
+       (GOMP_offload_unregister_ver): Likewise.
+       (gomp_init_device): Likewise.
+       (gomp_unload_device): Likewise.
+       (gomp_fini_device): Remove.
+       (gomp_get_target_fn_addr): Do nothing if device is finalized.
+       (GOMP_target): Go to host fallback if device is finalized.
+       (GOMP_target_ext): Likewise.
+       (gomp_exit_data): Do nothing if device is finalized.
+       (gomp_target_task_fn): Go to host fallback if device is finalized.
+       (gomp_target_fini): New static function.
+       (gomp_target_init): Use state instead of is_initialized.
+       Call gomp_target_fini at exit.
+
+2015-12-09  Tom de Vries  <tom@codesourcery.com>
+
+       PR tree-optimization/68716
+       * testsuite/libgomp.c/omp-nested-2.c: New test.
+
+2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
+       target openacc_nvidia_accel_selected.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
+
+2015-12-01  Julian Brown  <julian@codesourcery.com>
+           James Norris  <James_Norris@mentor.com>
+
+       * oacc-parallel.c (GOACC_host_data): New function.
+       * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
+
+2015-11-30  James Norris  <jnorris@codesourcery.com>
+           Cesar Philippidis  <cesar@codesourcery.com>
+
+       libgomp/
+       * libgomp.oacc-fortran/routine-5.f90: New test.
+       * libgomp.oacc-fortran/routine-7.f90: New test.
+       * libgomp.oacc-fortran/routine-9.f90: New test.
+
+2015-11-30  Tom de Vries  <tom@codesourcery.com>
+
+       PR tree-optimization/46032
+       * testsuite/libgomp.c/pr46032.c: New test.
+
+2015-11-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/68579
+       * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
+       (gomp_create_target_task): Call it before freeing
+       GOMP_TARGET_TASK_DATA tasks.
+
+       PR c/63326
+       * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
+       in between case label and OpenMP standalone directives.
+       * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
+
+2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
+
+       * configure: Regenerate.
+
+2015-11-26  Jakub Jelinek  <jakub@redhat.com>
+
+       * testsuite/libgomp.c/target-35.c: New test.
+
+2015-11-22  James Norris  <jnorris@codesourcery.com>
+           Cesar Philippidis  <cesar@codesourcery.com>
+
+       * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
+       * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
+       * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
+       * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
+       * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
+
+2015-11-20  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/68221
+       * testsuite/libgomp.c/reduction-11.c: Remove xfail.
+       * testsuite/libgomp.c/reduction-12.c: Likewise.
+       * testsuite/libgomp.c++/reduction-11.C: Likewise.
+       * testsuite/libgomp.c++/reduction-12.C: Likewise.
+
+2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
+       * libgomp.oacc-c-c++-common/reduction-flt.c: New.
+       * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
+       * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
+       * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
+       and fix.
+       * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
+       * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
+
+2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
+       worker & gang cases.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
+
+2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
+
+       * config/nvptx/priority_queue.c: New file.
+
+2015-11-14  Jakub Jelinek  <jakub@redhat.com>
+
+       * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
+       sections.
+
+2015-11-14  Jakub Jelinek  <jakub@redhat.com>
+           Aldy Hernandez  <aldyh@redhat.com>
+           Ilya Verbin  <ilya.verbin@intel.com>
+
+       * ordered.c (gomp_doacross_init, GOMP_doacross_post,
+       GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
+       GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
+       iterators or IV by chunk size.
+       * parallel.c (gomp_resolve_num_threads): Don't assume that
+       if thr->ts.team is non-NULL, then pool must be non-NULL.
+       * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
+       * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
+       GOMP_PLUGIN_target_task_completion.
+       * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
+       * Makefile.in: Regenerate.
+       * libgomp.h: Shuffle prototypes and forward definitions around so
+       priority queues can be defined.
+       (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
+       (enum gomp_target_task_state): New enum.
+       (struct gomp_target_task): Add state, tgt, task and team fields.
+       (gomp_create_target_task): Change return type to bool, add
+       state argument.
+       (gomp_target_task_fn): Change return type to bool.
+       (struct gomp_device_descr): Add async_run_func.
+       (struct gomp_task): Remove children, next_child, prev_child,
+       next_queue, prev_queue, next_taskgroup, prev_taskgroup.
+       Add pnode field.
+       (struct gomp_taskgroup): Remove children.
+       Add taskgroup_queue.
+       (struct gomp_team): Change task_queue type to a priority queue.
+       (splay_compare): Define inline.
+       (priority_queue_offset): New.
+       (priority_node_to_task): New.
+       (task_to_priority_node): New.
+       * oacc-mem.c: Do not include splay-tree.h.
+       * priority_queue.c: New file.
+       * priority_queue.h: New file.
+       * splay-tree.c: Do not include splay-tree.h.
+       (splay_tree_foreach_internal): New.
+       (splay_tree_foreach): New.
+       * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
+       (splay_tree_callback): Define typedef.
+       * target.c (splay_compare): Move to libgomp.h.
+       (GOMP_target): Don't adjust *thr in any way around running offloaded
+       task.
+       (GOMP_target_ext): Likewise.  Handle target nowait.
+       (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
+       return value from gomp_create_target_task, if false, fallthrough
+       as if no dependencies exist.
+       (gomp_target_task_fn): Change return type to bool, return true
+       if the task should have another part scheduled later.  Handle
+       target nowait.
+       (gomp_load_plugin_for_device): Initialize async_run.
+       * task.c (gomp_init_task): Initialize children_queue.
+       (gomp_clear_parent_in_list): New.
+       (gomp_clear_parent_in_tree): New.
+       (gomp_clear_parent): Handle priorities.
+       (GOMP_task): Likewise.
+       (priority_queue_move_task_first,
+       gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
+       New functions.
+       (gomp_create_target_task): Use priority queues.  Change return type
+       to bool, add state argument, return false if for async
+       {{enter,exit} data,update} constructs no dependencies need to be
+       waited for, handle target nowait.  Set task->fn to NULL instead of
+       gomp_target_task_fn.
+       (verify_children_queue): Remove.
+       (priority_list_upgrade_task): New.
+       (priority_queue_upgrade_task): New.
+       (verify_task_queue): Remove.
+       (priority_list_downgrade_task): New.
+       (priority_queue_downgrade_task): New.
+       (gomp_task_run_pre): Use priority queues.
+       Abstract code out to priority_queue_downgrade_task.
+       (gomp_task_run_post_handle_dependers): Use priority queues.
+       (gomp_task_run_post_remove_parent): Likewise.
+       (gomp_task_run_post_remove_taskgroup): Likewise.
+       (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
+       tasks specially.
+       (GOMP_taskwait): Likewise.
+       (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
+       priority-queue_upgrade_task.
+       (GOMP_taskgroup_start): Use priority queues.
+       (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
+       specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
+       barrier.
+       * taskloop.c (GOMP_taskloop): Handle priorities.
+       * team.c (gomp_new_team): Call priority_queue_init.
+       (free_team): Call priority_queue_free.
+       (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
+       team created for target nowait in implicit parallel region.
+       (gomp_team_start): For nested check, test thr->ts.level instead of
+       thr->ts.team != NULL.
+       * testsuite/libgomp.c/doacross-3.c: New test.
+       * testsuite/libgomp.c/ordered-5.c: New test.
+       * testsuite/libgomp.c/priority.c: New test.
+       * testsuite/libgomp.c/target-31.c: New test.
+       * testsuite/libgomp.c/target-32.c: New test.
+       * testsuite/libgomp.c/target-33.c: New test.
+       * testsuite/libgomp.c/target-34.c: New test.
+
+2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
+
+       * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
+       loop is sequential.
+
+2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
+
 2015-11-12  James Norris  <jnorris@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>
 
 2005-05-03  Richard Henderson  <rth@redhat.com>
 
        Initial implementation and checkin.
+\f
+Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.