public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Prasad, Adi" <adi.prasad21@imperial.ac.uk>
To: Tobias Burnus <tobias@codesourcery.com>,
	Thomas Schwinge <thomas@codesourcery.com>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: RE: GSoC Separate Host Process Offloading
Date: Sat, 1 Apr 2023 04:16:08 +0000	[thread overview]
Message-ID: <LO0P265MB5874E29FCE30458A79B1F5B3B58C9@LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <LO0P265MB5874CE94EA31CDC8695FDC44B58C9@LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM>

Hi Tobias and Thomas,
My apologies for the double email; I have an unrelated administrative ask. Would it be possible to provide any past successful GSoC proposals? I'm interested in any thnigs GCC specifically is looking for in proposals (I've seen quite a few generic guides on the web but none specific to GCC).

Thanks,
Adi

> -----Original Message-----
> From: Prasad, Adi
> Sent: Saturday, April 1, 2023 4:16 AM
> To: 'Tobias Burnus' <tobias@codesourcery.com>; Thomas Schwinge
> <thomas@codesourcery.com>
> Cc: gcc@gcc.gnu.org
> Subject: RE: GSoC Separate Host Process Offloading
> 
> Hi Tobias,
> Thanks for the reply!
> 
> >
> > Note that multiple offload targets are possible. For instance, on
> > Debian/Ubuntu, 'gcc -v' shows:
> > 'OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa' and lto-wrapper
> then
> > cycles through those, finding the offloading compiler in
> > $PATH/accel/<triple>/mkoffload
> >
> > Example: x86_64-none-linux-gnu/12.2.1/accel/amdgcn-amdhsa/mkoffload
> >
> > Thus, if you install it to 'x86_64-none-linux-gnu' and add it to
> > OFFLOAD_TARGET_NAMES,* it will work; albeit, we probably want to have
> > some special handling in gcc.cc to avoid host-process offloading by
> > default and permit something like -foffload=host instead of having to
> > specify -foffload=x86_64-none-linux-gnu
> >
> Understood. Forgive me if I'm misunderstanding this, but I wonder if it might be
> better to put the new mkoffload in an "accel/host" directory, and add "host" to
> OFFLOAD_TARGET_NAMES rather than have the specific host e.g. "x86_64-none-
> linux-gnu"? This would 1) enable the use of "-foffload=host" automatically and 2)
> distinguish between compiling for the same device on a separate process versus
> compiling to a separate device with the same architecture and kernel as the host.
> I can imagine this clash wouldn’t happen in practice, since compiling for a
> separate host process would target CPUs while compiling for a separate device
> would target GPUs, but it might be nicer to keep them conceptually separate all
> the same.
> 
> > I think it would be useful to start posting patches early – such that
> > they can be reviewed and discussed. Thus, this is not really the 4th
> > and 5th item.
> >
> I can post patches every week instead since my proposal will set a milestone
> target for each week.
> Additionally, what do you think about me doing some other small tasks besides
> the proposed scope? What I was thinking about specifically was that it might be
> helpful to get the offloading documentation page up to date and add info on
> OpenACC.
> 
> > No quick idea for work items – maybe I get one – or Thomas does :-)
> >
> > Tobias
> >
> Thank you so much for all the info, and do let me know if any small tasks come
> up!
> Adi

  reply	other threads:[~2023-04-01  4:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 20:39 Prasad, Adi
2023-03-29 20:39 ` Thomas Schwinge
2023-03-31 12:35   ` Prasad, Adi
2023-03-31 12:54     ` Tobias Burnus
2023-04-01  3:16       ` Prasad, Adi
2023-04-01  4:16         ` Prasad, Adi [this message]
2023-04-03 15:35           ` Prasad, Adi
2023-04-03 17:04           ` Martin Jambor
2023-04-03 20:52         ` Thomas Schwinge

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=LO0P265MB5874E29FCE30458A79B1F5B3B58C9@LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM \
    --to=adi.prasad21@imperial.ac.uk \
    --cc=gcc@gcc.gnu.org \
    --cc=thomas@codesourcery.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).