From patchwork Wed Jul 12 13:42:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1806818 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R1Jp94GqHz20cD for ; Wed, 12 Jul 2023 23:42:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AF69385559F for ; Wed, 12 Jul 2023 13:42:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 372883858D20; Wed, 12 Jul 2023 13:42:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 372883858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="6.01,199,1684828800"; d="scan'208";a="12995783" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 12 Jul 2023 05:42:25 -0800 IronPort-SDR: CdIpc5shGwSODrH2agWgJ8cQo9BlhrwRjrhdfqB70D5UhKYhnBIw5xFptdRNEZAs7HVbaKwwV1 Kp4CB7GaeeY0NFqjESdqUG/2wfneZRxulQ25hjcFpq7RrOmo/OdXN0QQKshDEGyx+YaBoouigy PaEqcqT5K4Vk7NigTO4cfigAFFfwt5YRAHtsvk1CZGvFBxAVXyQDatxqR8z9whKehNhIm4kWQA +9CGQhrjd/lapE8X0YyzuAbyr1YgkH3FDY3e3FTbQrs28q+FgQmnYq3BgjSuD0SlzcqT3viVfK dno= From: Julian Brown To: CC: , , Subject: [PATCH] [og13] OpenACC: Vector length warning fixes for implicit mapping/declare create tests Date: Wed, 12 Jul 2023 06:42:06 -0700 Message-ID: <20230712134207.123424-1-julian@codesourcery.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch adds expected "vector length" warnings to several tests for NVPTX. Tested with offloading to NVPTX. I will apply (to og13) shortly. 2023-07-11 Julian Brown libgomp/ * testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c: Add expected warning. * testsuite/libgomp.oacc-fortran/declare-create-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/declare-create-2.f90: Likewise. * testsuite/libgomp.oacc-fortran/declare-create-3.f90: Likewise. * testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90: Likewise. * testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90: Likewise. --- libgomp/testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c | 1 + libgomp/testsuite/libgomp.oacc-fortran/declare-create-1.f90 | 1 + libgomp/testsuite/libgomp.oacc-fortran/declare-create-2.f90 | 1 + libgomp/testsuite/libgomp.oacc-fortran/declare-create-3.f90 | 1 + .../testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90 | 1 + .../testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90 | 1 + 6 files changed, 6 insertions(+) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c index 4825e875998..ed0ab94cd8f 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c @@ -12,6 +12,7 @@ int main(void) #pragma acc enter data copyin(arr[30:10]) #pragma acc serial +/* { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } */ { arr[33] = 66; } diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-1.f90 index 9e7e60f1440..057b5eb958a 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-1.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-1.f90 @@ -11,6 +11,7 @@ use m mint = 0 !$acc serial +! { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } mint = 5 !$acc end serial diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-2.f90 index 675f6902775..dd7c9798fba 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-2.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-2.f90 @@ -13,6 +13,7 @@ allocate(mint) mint = 0 !$acc serial +! { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } mint = 5 !$acc end serial diff --git a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-3.f90 b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-3.f90 index 16651cb1f5e..7cceaa5f8a3 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/declare-create-3.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/declare-create-3.f90 @@ -13,6 +13,7 @@ allocate(mint(1:20)) mint = 0 !$acc serial +! { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } mint = 5 !$acc end serial diff --git a/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90 b/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90 index 4b61e1cee9b..8b173c72d88 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-1.f90 @@ -19,6 +19,7 @@ integer :: arr(*) !$acc enter data copyin(arr(1:10)) !$acc serial +! { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } arr(5) = 5 !$acc end serial diff --git a/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90 index daf7089915f..659fe8e3c06 100644 --- a/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90 +++ b/libgomp/testsuite/libgomp.oacc-fortran/nonlexical-assumed-size-2.f90 @@ -30,6 +30,7 @@ integer :: arr(*) ! overwritten. !$acc serial +! { dg-warning {using .vector_length \(32\)., ignoring 1} "" { target openacc_nvidia_accel_selected } .-1 } ! This access is then done via the on-target pointer. arr(5) = 5 !$acc end serial