This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][RFC][OpenMP] Forbid target* pragmas in target regions


On Tue, Feb 10, 2015 at 11:20:24 +0100, Jakub Jelinek wrote:
> So, what we can do is e.g. ignore the nested #pragma omp target* regions
> inside of #pragma omp target, or turn them into __builtin_trap ().

I like this idea to ignore them at compile-time, but how to be with declare
target functions?

#pragma omp declare target
void foo (int x, int y)
{
  #pragma omp target map(to: y) if(x)
    y;
}
#pragma omp end declare target

This code seems to be correct, but it has the same problem with static
omp_data_sizes and omp_data_kinds.

  -- Ilya


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]