(root)/
gcc-13.2.0/
libgomp/
testsuite/
libgomp.oacc-c-c++-common/
insufficient-resources.c
       1  /* { dg-set-target-env-var "GOMP_OPENACC_DIM" ":33:" } */
       2  /* { dg-shouldfail "" { openacc_nvidia_accel_selected } } */
       3  
       4  #include <stdlib.h>
       5  #include <stdio.h>
       6  
       7  int
       8  main (void)
       9  {
      10  #pragma acc parallel vector_length (32)
      11    {
      12  #pragma acc loop worker
      13      for (unsigned int i = 0; i < 32; i++)
      14  #pragma acc loop vector
      15        for (unsigned int j = 0; j < 64; j++)
      16  	;
      17    }
      18  
      19    return 0;
      20  }
      21  /* { dg-output "The Nvidia accelerator has insufficient resources" { target openacc_nvidia_accel_selected } } */