This patch removes the libgomp.oacc-c/gwv.c. test case. The original idea behind this test was to allow us to create our own parallel loops using by using the gang, worker and vector threads directly by using the built-in GOACC_ thread functions. This test was supposed to ensure that those functions work.
Now that we're working on a proper execution model, exposing those functions to the end user doesn't make much sense. That's at least true for workers and vectors because they start off in worker-single and vector-single mode, respectively. Then there's the other issue of variable broadcasting. As a result, this test case isn't necessary going forward. Those thread functions are already being exercised by omp-low for each acc loop anyway. Cesar
2015-05-18 Cesar Philippidis <ce...@codesourcery.com> libgomp/ * testsuite/libgomp.oacc-c/gwv.c: Delete. diff --git a/libgomp/testsuite/libgomp.oacc-c/gwv.c b/libgomp/testsuite/libgomp.oacc-c/gwv.c deleted file mode 100644 index f8f1169..0000000 --- a/libgomp/testsuite/libgomp.oacc-c/gwv.c +++ /dev/null @@ -1,34 +0,0 @@ -#include <stdlib.h> -#include <openacc.h> - -extern int __builtin_GOACC_ntid (int); -extern int __builtin_GOACC_tid (int); -extern int __builtin_GOACC_nctaid (int); -extern int __builtin_GOACC_ctaid (int); - -int main () -{ - int gangs = -1, vectors = -1; - int GANGS = 100, VECTORS = 64; - -#pragma acc parallel num_gangs (GANGS) vector_length (VECTORS) copyout (gangs, vectors) - { - gangs = __builtin_GOACC_nctaid (0); - vectors = __builtin_GOACC_ntid (0); - } - - if (acc_get_device_type () == acc_device_nvidia) - { - if (gangs != GANGS) - abort (); - if (vectors != VECTORS) - abort (); - } - else - { - if (gangs != 0) - abort (); - if (vectors != 0) - abort (); - } -}