[PR90743] Fortran 'allocatable' with OpenACC data/OpenMP 'target' 'map' clauses
Wed Jun 5 10:26:00 GMT 2019
On Wed, 5 Jun 2019 12:00:25 +0200, Jakub Jelinek <firstname.lastname@example.org> wrote:
> On Wed, Jun 05, 2019 at 11:25:07AM +0200, Thomas Schwinge wrote:
> > + !$omp target map(to: a) map(tofrom: b, c, d) map(from: e)
> > + !$acc parallel copyin(a) copy(b, c, d) copyout(e)
> Is mixing OpenMP and OpenACC construct this way defined at all?
It's not. I'm using this just to avoid duplicating the test case file,
that is, '-fopenacc' and '-fopenmp' aren't enabled at the same time.
> I see we reject OpenMP constructs inside of OpenACC contexts
> using OpenACC constructs inside host OpenMP constructs should be generally
> fine too
ACK. (Should, but currently isn't.)
> but mixing OpenMP offloading constructs with OpenACC constructs
> sounds wrong.
ACK. (Unless that gets defined by the two standards.)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 658 bytes
Desc: not available
More information about the Gcc-patches