public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: Tobias Burnus <tobias@codesourcery.com>
Cc: <gcc-patches@gcc.gnu.org>, Jakub Jelinek <jakub@redhat.com>,
	<fortran@gcc.gnu.org>
Subject: Re: [Patch] Fortran/OpenMP: Fix mapping of array descriptors and deferred-length strings
Date: Sat, 25 Feb 2023 10:11:48 +0100	[thread overview]
Message-ID: <877cw6cdnv.fsf@euler.schwinge.homeip.net> (raw)
In-Reply-To: <57880257-d50f-e72b-5423-932af6c64e92@codesourcery.com>

Hi Tobias!

On 2023-02-23T17:42:08+0100, Tobias Burnus <tobias@codesourcery.com> wrote:
> (Side note: this patch has been committed to OG12 as http://gcc.gnu.org/g:55a18d47442 )

I see og12 commit 55a18d4744258e3909568e425f9f473c49f9d13f
"Fortran/OpenMP: Fix mapping of array descriptors and deferred-length strings"
regress existing test cases as follows:

    [-PASS:-]{+FAIL:+} gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times gimple "(?n)#pragma omp target oacc_exit_data map\\(delete:MEM <[^>]+> \\[\\(integer\\(kind=.\\)\\[0:\\] \\*\\)_[0-9]+\\] \\[len: [^\\]]+\\]\\) map\\(to:del_f_p \\[pointer set, len: [0-9]+\\]\\) map\\(alloc:del_f_p\\.data \\[pointer assign, bias: [^\\]]+\\]\\) finalize$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times gimple "(?n)#pragma omp target oacc_exit_data map\\(delete:del_f \\[len: [0-9]+\\]\\) finalize$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times gimple "(?n)#pragma omp target oacc_exit_data map\\(force_from:MEM <[^>]+> \\[\\(integer\\(kind=.\\)\\[0:\\] \\*\\)_[0-9]+\\] \\[len: [^\\]]+\\]\\) map\\(to:cpo_f_p \\[pointer set, len: [0-9]+\\]\\) map\\(alloc:cpo_f_p\\.data \\[pointer assign, bias: [^\\]]+\\]\\) finalize$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times gimple "(?n)#pragma omp target oacc_exit_data map\\(force_from:cpo_f \\[len: [0-9]+\\]\\) finalize$" 1
    @@ -54679,7 +54679,7 @@ PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times gimple "(?n)#pr
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(from:\\*\\(integer\\(kind=.\\)\\[0:\\] \\*\\) parm\\.1\\.data \\[len: [^\\]]+\\]\\) map\\(to:cpo_f_p \\[pointer set, len: [0-9]+\\]\\) map\\(alloc:\\(integer\\(kind=1\\)\\[0:\\] \\* restrict\\) cpo_f_p\\.data \\[pointer assign, bias: \\(.*int.*\\) parm\\.1\\.data - \\(.*int.*\\) cpo_f_p\\.data\\]\\) finalize;$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(from:cpo_f\\) finalize;$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(from:cpo_r\\);$" 1
    [-PASS:-]{+FAIL:+} gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(release:\\*\\(integer\\(kind=.\\)\\[0:\\] \\*\\) parm\\.0\\.data \\[len: [^\\]]+\\]\\) map\\(to:del_f_p \\[pointer set, len: [0-9]+\\]\\) map\\(alloc:\\(integer\\(kind=1\\)\\[0:\\] \\* restrict\\) del_f_p\\.data \\[pointer assign, bias: \\(.*int.*\\) parm\\.0\\.data - \\(.*int.*\\) del_f_p\\.data\\]\\) finalize;$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(release:del_f\\) finalize;$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O   scan-tree-dump-times original "(?n)#pragma acc exit data map\\(release:del_r\\);$" 1
    PASS: gfortran.dg/goacc/finalize-1.f   -O  (test for excess errors)

    [-PASS:-]{+FAIL:+} gfortran.dg/gomp/pr78260-2.f90   -O   scan-tree-dump-times original "#pragma omp target data map\\(tofrom:\\*\\(integer\\(kind=4\\)\\[0:\\] \\* restrict\\) __result->data \\[len: D.[0-9]+ \\* 4\\]\\) map\\(to:\\*__result \\[pointer set, len: ..\\]\\) map\\(alloc:\\(integer\\(kind=4\\)\\[0:\\] \\* restrict\\) __result->data \\[pointer assign, bias: 0\\]\\) map\\(alloc:__result \\[pointer assign, bias: 0\\]\\)" 1
    [-PASS:-]{+FAIL:+} gfortran.dg/gomp/pr78260-2.f90   -O   scan-tree-dump-times original "#pragma omp target data map\\(tofrom:\\*\\(integer\\(kind=4\\)\\[0:\\] \\* restrict\\) arr.data \\[len: D.[0-9]+ \\* 4\\]\\) map\\(to:arr \\[pointer set, len: ..\\]\\) map\\(alloc:\\(integer\\(kind=4\\)\\[0:\\] \\* restrict\\) arr.data \\[pointer assign, bias: 0\\]\\)" 1
    PASS: gfortran.dg/gomp/pr78260-2.f90   -O   scan-tree-dump-times original "#pragma omp target data map\\(tofrom:\\*__result.0\\) map\\(alloc:__result.0 \\[pointer assign, bias: 0\\]\\)" 2
    PASS: gfortran.dg/gomp/pr78260-2.f90   -O   scan-tree-dump-times original "#pragma omp target data map\\(tofrom:__result_f1\\)" 1
    PASS: gfortran.dg/gomp/pr78260-2.f90   -O   scan-tree-dump-times original "#pragma omp target update to\\(\\*\\(integer\\(kind=4\\)\\[0:\\] \\* restrict\\) __result->data \\[len: D.[0-9]+ \\* 4\\]\\)" 1

Do to the scan patterns need adjusting, or is something wrong?


Grüße
 Thomas
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

  reply	other threads:[~2023-02-25  9:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 11:57 Tobias Burnus
2023-02-23 16:42 ` Tobias Burnus
2023-02-25  9:11   ` Thomas Schwinge [this message]
2023-02-27 11:57     ` [OG12,committed] Update dg-dump-scan for ... (was: [Patch] Fortran/OpenMP: Fix mapping of array descriptors and deferred-length strings) Tobias Burnus
2023-02-27 12:15   ` [Patch,v3] Fortran/OpenMP: Fix mapping of array descriptors and deferred-length strings Tobias Burnus
2023-03-23  9:28     ` [Patch,v4] " Tobias Burnus
2023-05-17 11:31       ` [committed] " Tobias Burnus

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=877cw6cdnv.fsf@euler.schwinge.homeip.net \
    --to=thomas@codesourcery.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=tobias@codesourcery.com \
    /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: link
Be 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).