mirror of git://gcc.gnu.org/git/gcc.git
[libgomp, testsuite, openacc] Don't use const int for dimensions
Const int is handled differently at -O0 for -xc and -xc++, which can cause noise in testsuite/libgomp.oacc-c-c++-common test-cases (which are both run for c and c++) if const int is used for launch dimensions. Fix this by using #defines instead. 2019-01-09 Tom de Vries <tdevries@suse.de> PR target/88756 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use #define instead of "const int". * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same. * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same. * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same. * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same. From-SVN: r267747
This commit is contained in:
parent
2c372e81a9
commit
5d0bc70ae4
|
|
@ -1,3 +1,13 @@
|
|||
2019-01-09 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
PR target/88756
|
||||
* testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
|
||||
#define instead of "const int".
|
||||
* testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
|
||||
* testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
|
||||
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
|
||||
* testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
|
||||
|
||||
2019-01-09 Tom de Vries <tdevries@suse.de>
|
||||
|
||||
* plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
#include <stdlib.h>
|
||||
#include "reduction.h"
|
||||
|
||||
const int ng = 8;
|
||||
const int nw = 4;
|
||||
const int vl = 32;
|
||||
#define ng 8
|
||||
#define nw 4
|
||||
#define vl 32
|
||||
|
||||
static void
|
||||
test_reductions (void)
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
#include <stdlib.h>
|
||||
#include "reduction.h"
|
||||
|
||||
const int ng = 8;
|
||||
const int nw = 4;
|
||||
const int vl = 32;
|
||||
#define ng 8
|
||||
#define nw 4
|
||||
#define vl 32
|
||||
|
||||
static void
|
||||
test_reductions (void)
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
#include <stdlib.h>
|
||||
#include "reduction.h"
|
||||
|
||||
const int ng = 8;
|
||||
const int nw = 4;
|
||||
const int vl = 32;
|
||||
#define ng 8
|
||||
#define nw 4
|
||||
#define vl 32
|
||||
|
||||
static void
|
||||
test_reductions (void)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
#include <complex.h>
|
||||
#include "reduction.h"
|
||||
|
||||
const int ng = 8;
|
||||
const int nw = 4;
|
||||
const int vl = 32;
|
||||
#define ng 8
|
||||
#define nw 4
|
||||
#define vl 32
|
||||
|
||||
static void
|
||||
test_reductions (void)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
const int ng = 8;
|
||||
const int nw = 4;
|
||||
const int vl = 32;
|
||||
#define ng 8
|
||||
#define nw 4
|
||||
#define vl 32
|
||||
|
||||
const int n = 100;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue