[nvptx] Add vector_length 64 test-cases
Add some test-cases using vector_length 64. 2019-01-12 Tom de Vries <tdevries@suse.de> * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test. * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test. * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test. From-SVN: r267895
This commit is contained in:
parent
56314b772f
commit
a105775825
|
@ -1,3 +1,9 @@
|
|||
2019-01-12 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
* testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
|
||||
* testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
|
||||
* testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
|
||||
|
||||
2019-01-12 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
PR target/85486
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
#pragma acc parallel vector_length (64) num_workers (16) /* { dg-warning "using num_workers \\(15\\), ignoring 16" "" { target openacc_nvidia_accel_configured } } */
|
||||
{
|
||||
#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;
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/* { dg-set-target-env-var "GOMP_OPENACC_DIM" ":16:" } */
|
||||
/* { dg-shouldfail "" { openacc_nvidia_accel_selected } } */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
#pragma acc parallel vector_length (64)
|
||||
{
|
||||
#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 barrier resources" { target openacc_nvidia_accel_selected } } */
|
|
@ -0,0 +1,17 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
#pragma acc parallel vector_length (64)
|
||||
{
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue