From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 961A9394B017; Tue, 8 Jun 2021 09:32:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 961A9394B017 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1288] Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia' X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: 97a040e987bfdc40d3bf442be74571a6819122cd X-Git-Newrev: 292fb10bebf3c209f560d1590d2d70bf30b58018 Message-Id: <20210608093201.961A9394B017@sourceware.org> Date: Tue, 8 Jun 2021 09:32:01 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2021 09:32:01 -0000 https://gcc.gnu.org/g:292fb10bebf3c209f560d1590d2d70bf30b58018 commit r12-1288-g292fb10bebf3c209f560d1590d2d70bf30b58018 Author: Thomas Schwinge Date: Fri Jun 4 15:42:22 2021 +0200 Enhance 'libgomp.oacc-c-c++-common/firstprivate-1.c' for non-'acc_device_nvidia' libgomp/ * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance for non-'acc_device_nvidia'. Diff: --- libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c index fff0c28e8ad..27da7654de9 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c @@ -79,7 +79,7 @@ void t2 () void t3 () { int a, b[N], c, d, i; - int n = acc_get_device_type () == acc_device_nvidia ? N : 1; + int n = acc_get_device_type () != acc_device_host ? N : 1; a = 5; for (i = 0; i < n; i++)