public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1282] Revert PR80547 workaround in 'libgomp.oacc-c-c++-common/parallel-dims.c' Date: Tue, 8 Jun 2021 09:13:55 +0000 (GMT) [thread overview] Message-ID: <20210608091355.86AD6386187B@sourceware.org> (raw) https://gcc.gnu.org/g:0886426f5f543e813c1a61e18da6616caf377dfc commit r12-1282-g0886426f5f543e813c1a61e18da6616caf377dfc Author: Thomas Schwinge <thomas@codesourcery.com> Date: Mon Jun 7 16:17:06 2021 +0200 Revert PR80547 workaround in 'libgomp.oacc-c-c++-common/parallel-dims.c' This problem has been fixed long ago, in r267934 (commit d41d952c9bbdffe6fd2badc9c4f2c18d241ce412) "[nvptx] Handle assignment to gang-level reduction variable". libgomp/ * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert PR80547 workaround. Diff: --- libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c index ef3dfda5fa5..c7412c2ef3a 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-dims.c @@ -72,22 +72,9 @@ int main () gangs_actual = 1; for (int i = 100 * gangs_actual; i > -100 * gangs_actual; --i) { - /* <https://gcc.gnu.org/PR80547>. */ -#if 0 gangs_min = gangs_max = acc_gang (); workers_min = workers_max = acc_worker (); vectors_min = vectors_max = acc_vector (); -#else - int gangs = acc_gang (); - gangs_min = (gangs_min < gangs) ? gangs_min : gangs; - gangs_max = (gangs_max > gangs) ? gangs_max : gangs; - int workers = acc_worker (); - workers_min = (workers_min < workers) ? workers_min : workers; - workers_max = (workers_max > workers) ? workers_max : workers; - int vectors = acc_vector (); - vectors_min = (vectors_min < vectors) ? vectors_min : vectors; - vectors_max = (vectors_max > vectors) ? vectors_max : vectors; -#endif } } if (gangs_actual != 1)
reply other threads:[~2021-06-08 9:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210608091355.86AD6386187B@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).