public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Stubbs <ams@baylibre.com>
To: Thomas Schwinge <tschwinge@baylibre.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [committed] amdgcn: Ensure gfx11 is running in cumode
Date: Fri, 22 Mar 2024 13:12:35 +0000	[thread overview]
Message-ID: <450fe150-31a0-4889-a1fe-9b7c71920dd4@baylibre.com> (raw)
In-Reply-To: <877chuv5ru.fsf@euler.schwinge.ddns.net>

On 22/03/2024 11:56, Thomas Schwinge wrote:
> Hi Andrew!
> 
> On 2024-03-21T13:39:53+0000, Andrew Stubbs <ams@baylibre.com> wrote:
>> CUmode "on" is the setting for compatibility with GCN and CDNA devices.
> 
>> --- a/gcc/config/gcn/gcn-hsa.h
>> +++ b/gcc/config/gcn/gcn-hsa.h
>> @@ -107,6 +107,7 @@ extern unsigned int gcn_local_sym_hash (const char *name);
>>   		  "%{" NO_XNACK XNACKOPT "} " \
>>   		  "%{" NO_SRAM_ECC SRAMOPT "} " \
>>   		  "%{march=gfx1030|march=gfx1100:-mattr=+wavefrontsize64} " \
>> +		  "%{march=gfx1030|march=gfx1100:-mattr=+cumode} " \
>>   		  "-filetype=obj"
> 
> Is this just general housekeeping, or should I be seeing any kind of
> change in the GCN target '-march=gfx1100' test results?  (I'm not.)

I'm pretty sure cumode is the default, but defaults can change and now 
we're future-proof. The option doesn't change the ELF flags at all.

The opposite of cumode allows more than 16 wavefronts in a workgroup, 
but they can't physically share a single LDS memory so it would break 
OpenACC broadcasting and reductions, and OpenMP libgomp team metadata. 
Also "cgroup" low-latency memory allocation.

Andrew

      reply	other threads:[~2024-03-22 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 13:39 Andrew Stubbs
2024-03-21 13:39 ` [commmitted] amdgcn: Comment correction Andrew Stubbs
2024-03-22 11:56 ` [committed] amdgcn: Ensure gfx11 is running in cumode Thomas Schwinge
2024-03-22 13:12   ` 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=450fe150-31a0-4889-a1fe-9b7c71920dd4@baylibre.com \
    --to=ams@baylibre.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tschwinge@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).