public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tobias Burnus <tburnus@baylibre.com>
To: Kwok Cheung Yeung <kcyeung@baylibre.com>
Cc: Jakub Jelinek <jakub@redhat.com>,
	gcc-patches <gcc-patches@gcc.gnu.org>,
	fortran@gcc.gnu.org
Subject: Re: [PATCH v2] openmp, fortran: Add Fortran support for indirect clause on the declare target directive
Date: Mon, 12 Feb 2024 09:51:32 +0100	[thread overview]
Message-ID: <400233cd-6085-4f55-9861-b2d222cbfeb7@baylibre.com> (raw)
In-Reply-To: <77364452-3d79-438f-a8d1-65aee3f6c3a7@baylibre.com>

Hi Kwok,

Kwok Cheung Yeung wrote:
> Oops. I thought exactly the same thing yesterday, but forgot to add 
> the changes to my commit! Here is the updated version.

I regard(ed) this change as obvious - hence, I missed to reply.
But for completeness: LGTM.

I think it would be useful to commit this now with an xfail
for the one failing testcase that depends on the review-pending libgomp
patch.

I mean something like:

--- a/libgomp/testsuite/libgomp.fortran/declare-target-indirect-2.f90
+++ b/libgomp/testsuite/libgomp.fortran/declare-target-indirect-2.f90
@@ -1,2 +1,3 @@
  ! { dg-do run }
+! { dg-xfail-run-if "Requires libgomp bug fix pending review" { offload_device } }

Thanks,

Tobias

> On 06/02/2024 9:03 am, Tobias Burnus wrote:
>> LGTM. I just wonder whether there should be a value test and not just 
>> a does-not-crash-when-called test for the latter testcase, i.e.
>>
>>
>>> +++ b/libgomp/testsuite/libgomp.fortran/declare-target-indirect-3.f90
>>> @@ -0,0 +1,25 @@
>>> +! { dg-do run }
>>> +
>>> +! Check that indirect calls work on procedures passed in via a 
>>> dummy argument
>>> +
>>> +module m
>>> +contains
>>> +  subroutine bar
>>> +    !$omp declare target enter(bar) indirect
>> e.g. "integer function bar()" ... " bar = 42"
>>> +  end subroutine
>>> +
>>> +  subroutine foo(f)
>>> +    procedure(bar) :: f
>>> +
>>> +    !$omp target
>>> +      call f
>> And then: if (f() /= 42) stop 1
>>> +    !$omp end target
>>> +  end subroutine
>>> +end module
>>
>> Thanks,
>>
>> Tobias
>>

  reply	other threads:[~2024-02-12  8:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-08 13:13 [PATCH] openmp: Add support for the 'indirect' clause in C/C++ Kwok Cheung Yeung
2023-10-17 13:12 ` Tobias Burnus
2023-10-17 13:34   ` Jakub Jelinek
2023-10-17 14:41     ` Tobias Burnus
2023-11-03 19:53   ` Kwok Cheung Yeung
2023-11-06  8:48     ` Tobias Burnus
2023-11-07 21:37       ` Joseph Myers
2023-11-07 21:51         ` Jakub Jelinek
2023-11-07 21:59           ` Kwok Cheung Yeung
2023-11-09 12:24     ` Thomas Schwinge
2023-11-09 16:00       ` Tobias Burnus
2023-11-13 10:59         ` Thomas Schwinge
2023-11-13 11:47           ` Tobias Burnus
2024-04-11 10:10             ` Thomas Schwinge
2024-01-03 14:47       ` [committed] " Kwok Cheung Yeung
2024-01-03 15:54       ` Kwok Cheung Yeung
2024-01-22 20:33     ` [PATCH] openmp: Change to using a hashtab to lookup offload target addresses for indirect function calls Kwok Cheung Yeung
2024-01-24  7:06       ` rep.dot.nop
2024-01-29 17:48         ` [PATCH v2] " Kwok Cheung Yeung
2024-03-08 13:40           ` Thomas Schwinge
2024-03-14 11:38           ` Tobias Burnus
2024-01-22 20:41     ` [PATCH] openmp, fortran: Add Fortran support for indirect clause on the declare target directive Kwok Cheung Yeung
2024-01-23 19:14       ` Tobias Burnus
2024-02-05 21:37         ` [PATCH v2] " Kwok Cheung Yeung
2024-02-06  9:03           ` Tobias Burnus
2024-02-06  9:50             ` Kwok Cheung Yeung
2024-02-12  8:51               ` Tobias Burnus [this message]
2024-02-15 21:37                 ` [COMMITTED] libgomp: Update documentation for indirect calls in target regions Kwok Cheung Yeung

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=400233cd-6085-4f55-9861-b2d222cbfeb7@baylibre.com \
    --to=tburnus@baylibre.com \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=kcyeung@baylibre.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).