From: Tom de Vries Date: Fri, 11 Jan 2019 11:45:55 +0000 (+0000) Subject: [nvptx, testsuite, openacc, libgomp] Add insufficient-resources.c X-Git-Tag: upstream/12.2.0~26857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c3e7ad20b797cd4fce7e21959b5f8e0f29bddc4;p=platform%2Fupstream%2Fgcc.git [nvptx, testsuite, openacc, libgomp] Add insufficient-resources.c Add a test-case that tests the "insufficient resources" fatal in the nvptx libgomp plugin. 2019-01-11 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New test. From-SVN: r267835 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 100bbdc..47af47f 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2019-01-11 Tom de Vries + + * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New + test. + 2019-01-10 Nathan Sidwell Julian Brown diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c new file mode 100644 index 0000000..b59cd42 --- /dev/null +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c @@ -0,0 +1,21 @@ +/* { dg-set-target-env-var "GOMP_OPENACC_DIM" ":33:" } */ +/* { dg-shouldfail "" { openacc_nvidia_accel_selected } } */ + +#include +#include + +int +main (void) +{ +#pragma acc parallel vector_length (32) + { +#pragma acc loop worker + for (unsigned int i = 0; i < 32; i++) +#pragma acc loop vector + for (unsigned int j = 0; j < 64; j++) + ; + } + + return 0; +} +/* { dg-output "The Nvidia accelerator has insufficient resources" { target openacc_nvidia_accel_selected } } */