From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtphub1.cc.ic.ac.uk (smtphub1.cc.ic.ac.uk [IPv6:2a0c:5bc0:80:117::79]) by sourceware.org (Postfix) with ESMTPS id 6154C3858D39 for ; Mon, 3 Apr 2023 15:35:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6154C3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=imperial.ac.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=imperial.ac.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=imperial.ac.uk; s=main01; h=MIME-Version:Content-Type:In-Reply-To: References:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2IYIRIR3LddJDIly1FRDtz2rbSHpq1ZKOU8/1FNB50E=; b=1M7a+a/IAbMoIRQJIqchjk0sM9 thU6c8aqoxXSDrVoz2FatFTn+WoVY51f99BRpIuAcXr5eocGowr2ZKMxKz/+aqGuUlPKUb1h3K90B 5+60t0aFdZSjfWiH52E5eQKg3lNeVXYHpjTLTfVlsGFoJeX81yoMEUdtKguiovPOcX5I=; Received: from mail-cwlgbr01lp20202.outbound.protection.outlook.com ([2a01:111:f400:7e14::202] helo=GBR01-CWL-obe.outbound.protection.outlook.com) by smtphub1.cc.ic.ac.uk with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pjMDq-0006pF-9n; Mon, 03 Apr 2023 16:35:54 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MTkcFTGNubSTxK2VklB02B9Kw3osIESDr9DWuo/aQg45tIh0LXIwh7G+C+V8M5v+UrRvYF4bXiruJkg6f4EY+ukK/BwD+PqMHRXHWyBC5dMr1En5bztqCAGwj2DxeIku7RbdKQb4k842jYt+VudqFCxVWwDaD3unBrGztLv3FgM1JqlkE1y2PHuchmbsyToSHJYENo6AoU+ztFgr9Sp/rrHOaMae/NFK+APeO791ftsjFzfR6yzwykzc8Bw4hj6OWuDWZxE7smegl18+aXplHVY9duOwtLizYHXtyx0akrw3TQBGgLfVdlbDgJQe5OjUoanwMKH6bOifbitqIhRhOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2IYIRIR3LddJDIly1FRDtz2rbSHpq1ZKOU8/1FNB50E=; b=KcoqANyr+trwHv3oDWOKRuFXtohaVKjHNyNqYTPKlEJXd0pTrH9pj1i5uiX/LZ480wVRAlqgHdzfKJYd+ZA9DyF9FFf263VukJV2xDqeVeGNaa7JfAhRlDR3PRabZtuwX6dBetCOL9jihk94iG3GJrDTbORyfG8bhR3BHnMy9n0nn1xMWb2+dMvqSvToaN8wih1mlgMIdN5SUKsD5jIZT64B5CYojUGQcqOAw03OHiFiM/bOzBnXbj1hq2cvMcN/M6BcXKh9INJaQwIlRi0fKPfdYwKThYqkNYBgqW9jIr7n9eJxI4l5KhCCghxNuCg6h5hQ0ndNvRpQWxKkVQUF3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=imperial.ac.uk; dmarc=pass action=none header.from=imperial.ac.uk; dkim=pass header.d=imperial.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ImperialLondon.onmicrosoft.com; s=selector2-ImperialLondon-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2IYIRIR3LddJDIly1FRDtz2rbSHpq1ZKOU8/1FNB50E=; b=aDmSlyVPy9Y6gUbiBixo3GoW/YMaG8p01Bdte8i77YxttkyeZfcIiwhKNoWlZatKkX2nn0UWZ2ydQSwLORT8JAfh8WxiSWDZ9ozVWNOtEHZDsWXkM5qx3MLUBw0k0NYVxkzwkm1Vlti2Ox1Vmd9subPw5WTP0OHvdUoA9t5Q/sA= Received: from LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:267::9) by CWLP265MB2484.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:92::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 3 Apr 2023 15:35:52 +0000 Received: from LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM ([fe80::1cea:5246:3ed6:d4f8]) by LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM ([fe80::1cea:5246:3ed6:d4f8%6]) with mapi id 15.20.6254.033; Mon, 3 Apr 2023 15:35:52 +0000 From: "Prasad, Adi" To: Tobias Burnus , Thomas Schwinge CC: "gcc@gcc.gnu.org" Subject: Re: GSoC Separate Host Process Offloading Thread-Topic: GSoC Separate Host Process Offloading Thread-Index: AQHZYbVEWRJxgIBkWkq2HuaFcW40G68SOZMAgAKdSNuAAAW4gIAA7sRggAAQlACAA+RVPA== Date: Mon, 3 Apr 2023 15:35:52 +0000 Message-ID: References: <87cz4rthqx.fsf@euler.schwinge.homeip.net> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=imperial.ac.uk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LO0P265MB5874:EE_|CWLP265MB2484:EE_ x-ms-office365-filtering-correlation-id: aeb2aa16-2955-4bed-2460-08db34591bf9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sO3dJxmfSAzWcjuziSgmZP1lffnvnB24v1/z6RQJ0ZLe8AT9sFhdSWoZ9CCdWZi3Td0V6AYdygjh1fhrs6CLSW3nsgNumYCsqxh6YajWluRC5cbun4z7mnbK3/unvw/H/XQMiGJ9tq+IHpTikFIBdasvBUT5vMzIng7LBCHDx2g7YWyfYOTWJ1j4T8vfvDRrDmOmI2t45giHl+1NRjZtfnkwY7lfzWm7XWCyccnuu3ggUbEkdR8Mdi6JwOwFelkJ/sVPNmWTk51wRW0yjrIAN+mn3xOWY2L3A4zm1WEEtzjgRTHoo2H86Vvi+6cyBWp9qFogztz5oFKl3f2scEXYroAsVF8EtDK0R8BmOkXSD60UTd7tUhaTBY9ntejYwt89C61I6ikGuYbVDxgCiZK2fFtMTh62Ciz7XbWAbI+v564Zk2kLNzPSdsR+WziwxV4Gqou9OujSZhIw3eWVlxHveGxNQ5w3BqlR20KtbLV1Nwsb41N6TSVjxAfsvfP6SQxsvWow1JcZCj1eqLsm2MeoX8qqn1J5Js/11r/1kVaY2ZWOXlLa00KaOnWU5McgIlrEZieEKFaJ3qOtnQrTo7h1di86YtLgS0SVcP7lDdB0vntNZUUT9ZwsHoLerR7C41/c x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(366004)(376002)(136003)(396003)(451199021)(5660300002)(38070700005)(41300700001)(52536014)(8936002)(66946007)(76116006)(2906002)(91956017)(38100700002)(83380400001)(122000001)(4326008)(8676002)(66446008)(66556008)(66476007)(64756008)(316002)(786003)(110136005)(33656002)(26005)(478600001)(7696005)(6506007)(186003)(53546011)(9686003)(71200400001)(86362001)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?tpvzJ/KJu3XNHy10pr1dLgQlIxXk2mBDB9kHq4PAX+LFz6xSzvNAd81i?= =?Windows-1252?Q?9NgbWvjsA/pQQ0m/fXIhnZUof4cUC4tFbAzimaLJP+7Lac1nSXR4frw1?= =?Windows-1252?Q?ntGkmiFj4x+gKmVhxrDfd2jfme9/VrIehL8cHXQdfwltozVpAZ0Y2Has?= =?Windows-1252?Q?yArQwUbySGkmhIwoajm5DPqTNRMjE2LY97oGynnfmVH4Rn2ZEseCBWq5?= =?Windows-1252?Q?po7ZRon1JfNg8FYCSrJKSZT9BAYRouCZHl4lQJkMI2bRazRpoI58gMOX?= =?Windows-1252?Q?A98fuizYOJ+6mf4/r69wUyI5aD5rC9gbCTOYJzM636KnT+k0IKVtmJBx?= =?Windows-1252?Q?6nOId63pfiUqnyqF8+Ik/a5DtqaE+lEshJJFAl6i7zyZiQbfB4cSTX6h?= =?Windows-1252?Q?DPzcISCyYbmrDngc6BZx0kEgdh1HiK26iWLWDoltOlkac11SSPFDpgdw?= =?Windows-1252?Q?XO0ztuV/x+y3+wwWgJ8yPZnwBFVOiXhOnVUBVQwgEOaL8NydbQQLh8Ox?= =?Windows-1252?Q?XjUwkTDfT19YqZPL1tS0XEotMEcI1YNhv0b57Xc326eJgmTtPhMdRN/0?= =?Windows-1252?Q?zAoaVebTSqY6vewj9Ho1KXy1w3rlmZscankrGauq06AIjuUTLPh5c458?= =?Windows-1252?Q?7pZG3R8wzePpzmoh/mHBWmhMCpQ4Hf21wnOglsA9M35N0J1XGtVEm0y4?= =?Windows-1252?Q?bziFzz6aA7AtS5xO5TUiTYEKH5Bu55ekatcC/FMj+JzgdyCzd9qOosN5?= =?Windows-1252?Q?opi1SvyBqJasDBgZhxbdfOz71yK6FvhDaySIz5OVz5gm3yMYZSd9twBW?= =?Windows-1252?Q?M/t5waoNKCMeb6i2FtfZe7UwQ7Zp7gWr6LgaydkfYF8t9xb5vqk2/T69?= =?Windows-1252?Q?gvCjekFiIL+AmPn1rODakXzWxy4jEKch4bvGYQCusljBBLOonP6xYOlm?= =?Windows-1252?Q?EkHXbq9sRvcuOVtsnr2GAj+K1xaPJ63MUUv7TaoDLLaHH77YoEwuKFzz?= =?Windows-1252?Q?it3blvo+IrVPGQDDOpkKDfmlcoKF2Ke8SPXRjr+LlSgffkux2SZRJfdA?= =?Windows-1252?Q?f0w1ag8gVRmqawwjhWXK1FBEmjQdyge2hby60dLf85iH7mEeucwTHn6O?= =?Windows-1252?Q?4rpmYmHQBjGbGCMZYPwiEkvxaYbo5cPpyyPMKonb8gqPtm5HvBigBJIJ?= =?Windows-1252?Q?AwFvtBcXCmFEzCP7Fvbkn5Ke0PKColySr424gFz2B53FCYryMyf9tq0O?= =?Windows-1252?Q?G/mZkfy7BCAg4SWQ7B6inNbmt4o/t7l++tUkdxZyksJfg1TdPSSf+j4W?= =?Windows-1252?Q?HGgB5Ihnu8hhpq33z5vB3pJ3jhIm0TP7mnuUOLrffeKmBD5RYJii4Kom?= =?Windows-1252?Q?0IF+7ozYyvcrz8Ef5Et97kWtmqce7zU38rmkEoYPcIayQjfNEZelihyY?= =?Windows-1252?Q?cCssnqFjrziMbIQ13iPJgVh7h32SOONL3CfPKnXkAeIRfKFqT9MjO/SB?= =?Windows-1252?Q?BuTXBiFntLsgs8DhCJQcfcVNfB+QrRTp7wwdegTG2e/+GUwXnVxMycDr?= =?Windows-1252?Q?NvcirJTIO85/EcnFbK8URikQAvwB2BT+EtEgt6+HwAoqWYOoZsQVv750?= =?Windows-1252?Q?rrH2jB6J7ZXJqLBe9pclGBX8zMuqBfrHym+tIQDRZaaTGvaX3l4NVBCW?= =?Windows-1252?Q?FN9YcyirRAgbfCMpXnz5zGXZErRKOffq?= Content-Type: multipart/alternative; boundary="_000_LO0P265MB587437568D9145004362D3A4B5929LO0P265MB5874GBRP_" MIME-Version: 1.0 X-OriginatorOrg: imperial.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LO0P265MB5874.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: aeb2aa16-2955-4bed-2460-08db34591bf9 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2023 15:35:52.8597 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 2b897507-ee8c-4575-830b-4f8267c3d307 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Z/LxpqEs1N5j4SSsJkbgDPfG/bqwQbKHFSVE8/mcH2KYFRWVHgJPKvl1uuuO3TXk X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB2484 X-IC-MsgID: 1pjMDq-0006pF-9n X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_LO0P265MB587437568D9145004362D3A4B5929LO0P265MB5874GBRP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Tobias and Thomas - just wondering if you've had a chance to look at thi= s? Thanks, Adi ________________________________ From: Prasad, Adi Sent: Saturday, April 1, 2023 5:16 am To: Tobias Burnus ; Thomas Schwinge Cc: gcc@gcc.gnu.org Subject: RE: GSoC Separate Host Process Offloading 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 int= erested in any thnigs GCC specifically is looking for in proposals (I've se= en 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' ; Thomas Schwinge > > 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=3Dnvptx-none:amdgcn-amdhsa' and lto-wrapper > then > > cycles through those, finding the offloading compiler in > > $PATH/accel//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=3Dhost instead of having to > > specify -foffload=3Dx86_64-none-linux-gnu > > > Understood. Forgive me if I'm misunderstanding this, but I wonder if it m= ight be > better to put the new mkoffload in an "accel/host" directory, and add "ho= st" 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=3Dhost" automatica= lly and 2) > distinguish between compiling for the same device on a separate process v= ersus > compiling to a separate device with the same architecture and kernel as t= he host. > I can imagine this clash wouldn=92t happen in practice, since compiling f= or a > separate host process would target CPUs while compiling for a separate de= vice > would target GPUs, but it might be nicer to keep them conceptually separa= te all > the same. > > > I think it would be useful to start posting patches early =96 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 milest= one > target for each week. > Additionally, what do you think about me doing some other small tasks bes= ides > the proposed scope? What I was thinking about specifically was that it mi= ght be > helpful to get the offloading documentation page up to date and add info = on > OpenACC. > > > No quick idea for work items =96 maybe I get one =96 or Thomas does :-) > > > > Tobias > > > Thank you so much for all the info, and do let me know if any small tasks= come > up! > Adi --_000_LO0P265MB587437568D9145004362D3A4B5929LO0P265MB5874GBRP_--