1 /* Ensure that worker-vector state conditional expressions are
2 properly handled by the nvptx backend. */
14 #pragma acc parallel num_gangs(16) num_workers(4) vector_length(32) copyout(A)
21 #pragma acc loop worker vector
27 #pragma acc loop worker vector
39 for (int i
= 0; i
< N
; i
++)
40 for (int j
= 0; j
< N
; j
++)
41 assert (A
[i
][j
] == -1);
44 for (int i
= 0; i
< N
; i
++)
45 for (int j
= 0; j
< N
; j
++)
46 assert (A
[i
][j
] == 1);