[nvptx, libgomp] Fix memleak in GOMP_OFFLOAD_fini_device
[gcc.git] / libgomp / ChangeLog
index d84c3f4bfe2e38a796d31b79169e80b1a8ff7e66..fb694020dcdde809f4dfab1040a9d9e7a589586e 100644 (file)
@@ -1,4 +1,241 @@
+2019-01-24  Tom de Vries  <tdevries@suse.de>
+
+       * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
+       once instantiated_devices drops to 0.
+
+2019-01-23  Tom de Vries  <tdevries@suse.de>
+
+       PR target/PR88946
+       * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
+       cuMemFree.
+       (nvptx_exec): Don't call map_push if mapnum == 0.
+       * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
+
+2019-01-23  Tom de Vries  <tdevries@suse.de>
+
+       PR target/88941
+       PR target/88939
+       * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
+       (map_fini): Remove "assert (!s->map->active)".
+       * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
+
+2019-01-23  Tom de Vries  <tdevries@suse.de>
+
+       PR target/87835
+       * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
+       * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
+
+2019-01-15  Tom de Vries  <tdevries@suse.de>
+
+       PR target/80547
+       * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
+       New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
+       * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       PR target/85486
+       * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       PR target/85381
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
+       * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
+       resources diagnostic.
+
+2019-01-12  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
+       vector length to be 128.
+       * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
+       length 2097152 to be reduced to 1024 instead of 32.
+
+2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
+            James Norris  <jnorris@codesourcery.com>
+
+       * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
+       Library Routines", and "Environment Variables".
+
+2019-01-11  Tom de Vries  <tdevries@suse.de>
+
+       * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
+       num_workers 16.
+
+2019-01-11  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
+       -foffload=-w.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
+
+2019-01-11  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
+       test.
+
+2019-01-10  Nathan Sidwell  <nathan@acm.org>
+           Julian Brown  <julian@codesourcery.com>
+
+       PR lto/71959
+       * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
+       * testsuite/libgomp.oacc-c++/pr71959.C: New.
+
+2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
+       and paste code.
+
+2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
+       undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
+       write.
+
+2019-01-09  Tom de Vries  <tdevries@suse.de>
+
+       PR target/88756
+       * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
+       #define instead of "const int".
+       * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
+
+2019-01-09  Tom de Vries  <tdevries@suse.de>
+
+       * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
+       one worker.
+
+2019-01-07  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
+       GOMP_OPENACC_DIM argument.
+
+2019-01-03  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
+
+2019-01-01  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+2019-01-01  Jakub Jelinek  <jakub@redhat.com>
+
+       * libgomp.texi: Bump @copying's copyright year.
+
+2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
+       (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
+       (GOACC_declare): Redefine the "device" argument to "flags".
+
+2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
+           Cesar Philippidis  <cesar@codesourcery.com>
+
+       * target.c (struct gomp_coalesce_chunk): New structure.
+       (struct gomp_coalesce_buf): Update the chunks member to use that
+       type.  Adjust all users.
+
+2018-12-19  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
+
+2018-12-19  Tom de Vries  <tdevries@suse.de>
+
+       * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
+       * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
+       gcc/testsuite/gcc.dg/goacc.
+       * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
+
 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
+           Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * oacc-mem.c (acc_present_or_create): Remove definition and change
+       to alias of acc_create.
+       (acc_present_or_copyin): Remove definition and change to alias of
+       acc_copyin.
+       * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
+       of acc_present_or_create.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
+       * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
+
+2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
+
+       PR libgomp/88495
+       * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
+       "identical parameters".
+       * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
+       * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
+
+       PR libgomp/88484
+       * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
+       * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
+
+       PR libgomp/88407
+       * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
+       (nvptx_wait_async): Unseen async-argument is a no-op.
+       * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
+       * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
+       * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
+       * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
+       * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
+       * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
+       * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
 
        * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
        * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
 
        Initial implementation and checkin.
 \f
-Copyright (C) 2005-2018 Free Software Foundation, Inc.
+Copyright (C) 2005-2019 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright