public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98869] New: Allowing mapping this in OpenMP target
@ 2021-01-28 18:18 xw111luoye at gmail dot com
  2021-01-28 18:19 ` [Bug c++/98869] " xw111luoye at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: xw111luoye at gmail dot com @ 2021-01-28 18:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98869
           Summary: Allowing mapping this in OpenMP target
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xw111luoye at gmail dot com
  Target Milestone: ---

this restriction seems unnecessary.

/home/yeluo/opt/qmcpack/src/Particle/SoaDistanceTableABOMPTarget.h:63:42:
error: ‘this’ allowed in OpenMP only in ‘declare simd’ clauses
   63 |     #pragma omp target enter data map(to:this[:1])

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

* [Bug c++/98869] Allowing mapping this in OpenMP target
  2021-01-28 18:18 [Bug c++/98869] New: Allowing mapping this in OpenMP target xw111luoye at gmail dot com
@ 2021-01-28 18:19 ` xw111luoye at gmail dot com
  2021-01-28 18:19 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: xw111luoye at gmail dot com @ 2021-01-28 18:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ye Luo <xw111luoye at gmail dot com> ---
Full source code at
https://github.com/QMCPACK/qmcpack/blob/a23584738485bb7c948d0ba1841c669fe76500b6/src/Particle/SoaDistanceTableABOMPTarget.h#L63

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

* [Bug c++/98869] Allowing mapping this in OpenMP target
  2021-01-28 18:18 [Bug c++/98869] New: Allowing mapping this in OpenMP target xw111luoye at gmail dot com
  2021-01-28 18:19 ` [Bug c++/98869] " xw111luoye at gmail dot com
@ 2021-01-28 18:19 ` jakub at gcc dot gnu.org
  2021-09-05  3:22 ` xw111luoye at gmail dot com
  2021-09-13 13:34 ` xw111luoye at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-01-28 18:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It is required by OpenMP 4.5, and the OpenMP 5.0 support that allows this is
not finished yet.

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

* [Bug c++/98869] Allowing mapping this in OpenMP target
  2021-01-28 18:18 [Bug c++/98869] New: Allowing mapping this in OpenMP target xw111luoye at gmail dot com
  2021-01-28 18:19 ` [Bug c++/98869] " xw111luoye at gmail dot com
  2021-01-28 18:19 ` jakub at gcc dot gnu.org
@ 2021-09-05  3:22 ` xw111luoye at gmail dot com
  2021-09-13 13:34 ` xw111luoye at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: xw111luoye at gmail dot com @ 2021-09-05  3:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Ye Luo <xw111luoye at gmail dot com> ---
This doesn't work with gcc 11.2 but works on devel/omp/gcc-11 branch.

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

* [Bug c++/98869] Allowing mapping this in OpenMP target
  2021-01-28 18:18 [Bug c++/98869] New: Allowing mapping this in OpenMP target xw111luoye at gmail dot com
                   ` (2 preceding siblings ...)
  2021-09-05  3:22 ` xw111luoye at gmail dot com
@ 2021-09-13 13:34 ` xw111luoye at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: xw111luoye at gmail dot com @ 2021-09-13 13:34 UTC (permalink / raw)
  To: gcc-bugs

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

Ye Luo <xw111luoye at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Ye Luo <xw111luoye at gmail dot com> ---
This part of issue has been resolved but compiling the full source code still
need to address https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102204

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

end of thread, other threads:[~2021-09-13 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-28 18:18 [Bug c++/98869] New: Allowing mapping this in OpenMP target xw111luoye at gmail dot com
2021-01-28 18:19 ` [Bug c++/98869] " xw111luoye at gmail dot com
2021-01-28 18:19 ` jakub at gcc dot gnu.org
2021-09-05  3:22 ` xw111luoye at gmail dot com
2021-09-13 13:34 ` xw111luoye at gmail dot com

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).