From: Andrew Stubbs <ams@codesourcery.com>
To: Tobias Burnus <tobias@codesourcery.com>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [committed] amdgcn: disable TImode
Date: Sat, 8 May 2021 00:00:19 +0100 [thread overview]
Message-ID: <824e8c1c-e308-0794-abe3-706fd32bb537@codesourcery.com> (raw)
In-Reply-To: <ba6006a1-9245-b54d-10e9-396f0e550a6b@codesourcery.com>
Indeed, libgomp fails to build:
configure: error: unsupported system, cannot find Fortran int kind=16,
needed for omp_depend_kind
I've reverted the patch for now. We'll just have to put up with a lot of
new test failures in the stand-alone toolchain so that the offload
toolchain will at least build.
I suspect we'll see some real failures here soon though.
Andrew
On 07/05/2021 23:45, Andrew Stubbs wrote:
> On 07/05/2021 18:11, Tobias Burnus wrote:
>> On 07.05.21 18:35, Andrew Stubbs wrote:
>>
>>> TImode has always been a problem on amdgcn, and now it is causing many
>>> new test failures, so I'm disabling it.
>>
>> Does still still work with libgomp?
>>
>> The patch sounds as if it might cause problems, but on the other hand,
>> I assume you did test it? To recall:
> >
>> The problem is that OpenMP's depobj as implemented in GCC has
>> sizeof() = 2*sizeof(void*) and is implemented as a two-element struct
>> in C/C++.
>> But the OpenMP spec mandates that it is an integer type in Fortran, i.e.
>> integer(kind=omp_depend_kind).
>
> I was focussing on getting the raw amdgcn toolchain toolchain to work
> again. I had forgotten about that little detail with Fortran. :-(
>
> Is there another way we can fix this without implementing all of TImode
> support or tracking down every place in the middle-end that wants to use
> TImode without checking the optab?
>
>> Combining the impl choice and the type requirements that means that
>> on 64bit systems, this requires __int128 support, cf. commit
>> https://gcc.gnu.org/g:8d0b2b33748014ee57973c1d7bc9fd7706bb3da9
>> and https://gcc.gnu.org/PR96306
>>
>> (Side note: The definition in OpenMP is bad - it should have been
>> some opaque derived type but that's a mistake done in OpenMP 5.0.)
>
> :-(
>
> Andrew
prev parent reply other threads:[~2021-05-07 23:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-07 16:35 Andrew Stubbs
2021-05-07 17:11 ` Tobias Burnus
2021-05-07 22:45 ` Andrew Stubbs
2021-05-07 23:00 ` Andrew Stubbs [this message]
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=824e8c1c-e308-0794-abe3-706fd32bb537@codesourcery.com \
--to=ams@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--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).