public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/113436] New: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives
@ 2024-01-17  8:57 burnus at gcc dot gnu.org
  2024-01-17  9:34 ` [Bug middle-end/113436] " burnus at gcc dot gnu.org
  2024-03-01 16:30 ` burnus at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2024-01-17  8:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113436

            Bug ID: 113436
           Summary: [OpenMP] 'allocate' clause has no effect for
                    (first)private on 'target' directives
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: openmp, wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

Created attachment 57112
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57112&action=edit
C/C++ testcase, compile with -fopenmp

The following code fails with an ABORT for the alignment check in the target
region as there is no 'omp_alloc' added for the privatized variables
(private/firstprivate).

It works in the parallel region.

See testcase.

* * *

For dynamic allocators, it depends on the WIP patch:
  https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637415.html
but that should be a rather independent issue.

Found while working on PR c++/110347 – the being created patch contains for
that PR contains an #if 0 testcase, which shall be enabled once this PR is
fixed.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/113436] [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives
  2024-01-17  8:57 [Bug middle-end/113436] New: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives burnus at gcc dot gnu.org
@ 2024-01-17  9:34 ` burnus at gcc dot gnu.org
  2024-03-01 16:30 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2024-01-17  9:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113436

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
BTW: The attach testcase misses 'firstprivate', which obviously needs to be
handled as well.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug middle-end/113436] [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives
  2024-01-17  8:57 [Bug middle-end/113436] New: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives burnus at gcc dot gnu.org
  2024-01-17  9:34 ` [Bug middle-end/113436] " burnus at gcc dot gnu.org
@ 2024-03-01 16:30 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2024-03-01 16:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113436

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
As mentioned in comment 0, PR110347's testcase (r14-9257-g4f82d5a95a244d)
contains '#if 0' code which has to be enabled once this bug is fixed.
Please remember to take care of:

* libgomp/testsuite/libgomp.c++/firstprivate-1.C's and
* libgomp/testsuite/libgomp.c++/private-1.C's

#if 0  /* FIXME: The following is disabled because of PR middle-end/113436.  */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-01 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17  8:57 [Bug middle-end/113436] New: [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives burnus at gcc dot gnu.org
2024-01-17  9:34 ` [Bug middle-end/113436] " burnus at gcc dot gnu.org
2024-03-01 16:30 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).