public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/100001] New: [GCN offloading] Occasional C++ 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure
@ 2021-04-09 15:46 tschwinge at gcc dot gnu.org
2023-03-14 9:23 ` [Bug target/100001] [GCN offloading] Occasional " tschwinge at gcc dot gnu.org
2023-03-14 9:25 ` tschwinge at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2021-04-09 15:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100001
Bug ID: 100001
Summary: [GCN offloading] Occasional C++
'libgomp.oacc-c-c++-common/static-variable-1.c'
execution failure
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: openacc
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: tschwinge at gcc dot gnu.org
CC: ams at gcc dot gnu.org, jules at gcc dot gnu.org
Target Milestone: ---
Target: gcn
My recent commit ffa0ae6eeef3ad15d3f288283e4c477193052f1a "Add
'libgomp.oacc-c-c++-common/static-variable-1.c' [PR84991, PR84992, PR90779]"
for 'libgomp.oacc-c' -- so far ;-) -- never but for 'libgomp.oacc-c++'
occasionally/"randomly" fails with GCN offloading, for '-O0' and/or '-O2'.
It's certainly possible that something's wrong with my verification logic, but
in quite some testing why has the failure ever only shown up for the C++ but
never the C variant? On the other hand, why is C++ behaving different from C
at all? (I haven't spent any time on understanding that.)
A few examples of failures with GCN offloading:
static-variable-1.exe:
[...]/libgomp/testsuite/libgomp.oacc-c++/../libgomp.oacc-c-c++-common/static-variable-1.c:355:
void t2(): Assertion `result_1_ == (((var_init_1 + num_gangs_actual_1 * (1 +
i)) * (1 + var_init_1 + num_gangs_actual_1 * (1 + i)) / 2) - ((var_init_1 +
num_gangs_actual_1 * (0 + i)) * (1 + var_init_1 + num_gangs_actual_1 * (0 + i))
/ 2))' failed.
static-variable-1.exe:
[...]/libgomp/testsuite/libgomp.oacc-c++/../libgomp.oacc-c-c++-common/static-variable-1.c:368:
void t2(): Assertion `result_2_ == (((t2_var_init_2 + num_gangs_actual_2 * (1 +
i)) * (1 + t2_var_init_2 + num_gangs_actual_2 * (1 + i)) / 2) - ((t2_var_init_2
+ num_gangs_actual_2 * (0 + i)) * (1 + t2_var_init_2 + num_gangs_actual_2 * (0
+ i)) / 2))' failed.
static-variable-1.exe:
[...]/libgomp/testsuite/libgomp.oacc-c++/../libgomp.oacc-c-c++-common/static-variable-1.c:381:
void t2(): Assertion `result_3_ == (((var_init_3 + num_gangs_actual_3 * (1 +
i)) * (1 + var_init_3 + num_gangs_actual_3 * (1 + i)) / 2) - ((var_init_3 +
num_gangs_actual_3 * (0 + i)) * (1 + var_init_3 + num_gangs_actual_3 * (0 + i))
/ 2))' failed.
I've -- so far ;-) -- not seen any failures with nvptx offloading.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/100001] [GCN offloading] Occasional 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure
2021-04-09 15:46 [Bug target/100001] New: [GCN offloading] Occasional C++ 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure tschwinge at gcc dot gnu.org
@ 2023-03-14 9:23 ` tschwinge at gcc dot gnu.org
2023-03-14 9:25 ` tschwinge at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-03-14 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100001
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Summary|[GCN offloading] Occasional |[GCN offloading] Occasional
|C++ |'libgomp.oacc-c-c++-common/
|'libgomp.oacc-c-c++-common/ |static-variable-1.c'
|static-variable-1.c' |execution failure
|execution failure |
Ever confirmed|0 |1
Last reconfirmed| |2023-03-14
--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
At some point, the 'libgomp.oacc-c-c++-common/static-variable-1.c' execution
test also started FAILing for C, not just C++, as initially noted above.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/100001] [GCN offloading] Occasional 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure
2021-04-09 15:46 [Bug target/100001] New: [GCN offloading] Occasional C++ 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure tschwinge at gcc dot gnu.org
2023-03-14 9:23 ` [Bug target/100001] [GCN offloading] Occasional " tschwinge at gcc dot gnu.org
@ 2023-03-14 9:25 ` tschwinge at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2023-03-14 9:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100001
--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
With my recent commit r13-6590-gf8332e52a498df480f72303de32ad0751ad899fe "Use
'GOMP_MAP_VARS_TARGET' for OpenACC compute constructs [PR90596]", the frequency
of those FAILs has increased to (almost) always.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-14 9:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 15:46 [Bug target/100001] New: [GCN offloading] Occasional C++ 'libgomp.oacc-c-c++-common/static-variable-1.c' execution failure tschwinge at gcc dot gnu.org
2023-03-14 9:23 ` [Bug target/100001] [GCN offloading] Occasional " tschwinge at gcc dot gnu.org
2023-03-14 9:25 ` tschwinge at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).