From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 81E0B3858CDA; Sat, 14 May 2022 09:16:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81E0B3858CDA From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvMTA1NjAyXSBOZXc6IFtPcGVuTVBdW2djbl0g?= =?UTF-8?B?4oCUIFN1cHBvcnQgbXVsdGlwbGUgYXJjaCBpbiBnY2MvY29uZmlnL2djbi90?= =?UTF-8?B?LW9tcC1kZXZpY2U/IEFkZCAnYW1kZ2NuJyAoYWRkaXRpb25hbGx5IHRvL2lu?= =?UTF-8?B?c3RlYWQgb2YgJ2FtZCcp?= Date: Sat, 14 May 2022 09:16:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2022 09:16:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105602 Bug ID: 105602 Summary: [OpenMP][gcn] =E2=80=94 Support multiple arch in gcc/config/gcn/t-omp-device? Add 'amdgcn' (additionally to/instead of 'amd') Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: ams at gcc dot gnu.org, jakub at gcc dot gnu.org Target Milestone: --- I note that GCC has in gcc/config/gcn/t-omp-device: echo kind: gpu > $@ echo arch: gcn >> $@ echo isa: fiji gfx900 gfx906 gfx908 >> $@ That is, GCC supports as context selector: match(construct=3D{target},device=3D{arch(gcn)}) In contrast, llvm has, e.g. in clang/lib/Headers/openmp_wrappers/cmath: #pragma omp begin declare variant match(device =3D {arch(amdgcn)}) Thus: LLVM uses 'amdgcn'. Expected: arch =3D 'amdgcn' (also) works in GCC for better compatibility. I= did not find a documentation and I think either variant is fine =E2=80=93 albei= t 'amdgcn' seems to be more natural.=