view gcc/testsuite/c-c++-common/goacc/deviceptr-4.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* { dg-additional-options "-fdump-tree-gimple" } */

void
subr (int *a)
{
#pragma acc data deviceptr (a)
#pragma acc parallel
  a[0] += 1.0;
}

/* { dg-final { scan-tree-dump-times "#pragma omp target oacc_parallel.*map\\(tofrom:a" 1 "gimple" } } */