From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) by sourceware.org (Postfix) with ESMTPS id 47E59385F3C7 for ; Thu, 15 Dec 2022 21:40:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 47E59385F3C7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uni-heidelberg.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=uni-heidelberg.de X-IPAS-Result: =?us-ascii?q?A2DRAgBVk5tj/6pkzoFaHAEBAQEBAQcBARIBAQQEAQGCD?= =?us-ascii?q?1eENYROkR0DhVyREIZegWoPAQEBAQEBAQEBCUQEAQGFBQKFDSc4EwECBAEBA?= =?us-ascii?q?QEDAgMBAQEBAQEDAQEGAQEBAQEHBIEdhXWGVgEBKGITDQMBAgEqAk8CIYJ+g?= =?us-ascii?q?yOyC3qBMoEBoBeBJ4FAiQsBgzGGI4EQgRUqgwA+hCo6gzeCZwSYUoFCgQF+B?= =?us-ascii?q?zYDGSsdQAN4CkU1F0wrGhsHgQoqKBUDBAQDAgYTAyACDSgxFAQpEw0pJmsJA?= =?us-ascii?q?gMhZgMDBCgtCSEfBxURJDwHVjwDAg8fNwYDCQMCIYFFLhEVBQMLFSpHBAg2B?= =?us-ascii?q?QZREgIIERIPBiZDDkI3NhMGgQcLDhMDUIFPBC9egQIKV5xXPA4eQXhCNGlWA?= =?us-ascii?q?QEBkS0usCEBBgKCIIFPoSGWbgKSH5dCohOFaYF5UIEuMxokT4EegUlSGQ+OL?= =?us-ascii?q?BYVjhp0OwIHAQoBAQMJimoBAQ?= IronPort-Data: A9a23:tDPWDKlyOYEjel2rNheyk/3o5gy/JkRdPkR7XQ2eYbSJt1+Wr1Gzt xIZWGHVPfeLNmSkfYwkO96xp00C75/cn4cyTwo++Co9RFtH+JHPbTi7Bh6tYHnCcJGroGGLT Sk6QoOdRCzhZiaE/n9BCpC48T8mk/j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HdrOrdr: A9a23:ab7MB63vPd/ABZegPM7j/wqjBI8kLtp133Aq2lEZdPT0Gfb3qy nOpoVi6faQsl16ZJhOo6HjBEC/ewK+yXcY2/h3AV7aZmXbUQiTXfhfBOnZogEIcheWnoNgPM FbAs5D4bbLfD1HZKjBkW2F+gIboOVueMuT6tvj8w== X-IronPort-Anti-Spam-Filtered: true Received: from sogo02.urz.uni-heidelberg.de ([129.206.100.170]) by relay2.uni-heidelberg.de with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 15 Dec 2022 22:40:33 +0100 Received: from localhost (localhost [127.0.0.1]) by sogo02.urz.uni-heidelberg.de (Postfix) with ESMTP id A528B808C606 for ; Thu, 15 Dec 2022 22:40:33 +0100 (CET) From: =?utf-8?q?Grosse-Bley=2C_Paul_Leonard?= To: gcc@gcc.gnu.org User-Agent: SOGoMail 5.8.0 MIME-Version: 1.0 Date: Thu, 15 Dec 2022 22:40:33 +0100 Subject: =?utf-8?q?Fwd=3A?==?utf-8?q?_Re=3A?==?utf-8?q?_GOMP=3A?= OMP =?utf-8?q?5=2E1=3A?= simd construct for non-pointer random access iterators Message-ID: <33914e-639b9480-22f-7b2b1480@227759601> X-Forward: 147.142.42.173 Content-Type: multipart/alternative; boundary="----=_=-_OpenGroupware_org_NGMime-3379534-1671140433.592027-231------" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,HTML_MESSAGE,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H2,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: ------=_=-_OpenGroupware_org_NGMime-3379534-1671140433.592027-231------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 2242 Sorry, I just saw that I only answered Jakub and Tobias directly instead of= CCing the List, so I will just forward my answer to Tobias to avoid wasting anyones time. -------- Original Message -------- Subject: Re: GOMP: OMP 5.1: simd construct for non-pointer random access it= erators Date: Thursday, December 15, 2022 22:19 CET From: Grosse-Bley, Paul Leonard To: "Tobias Burnus" Hi Tobias, as Jakub pointed out to me, the restriction was just moved in the standard = (or a redundant copy removed). The mention that I was searching for in 5.1 and 5.2 was in the "Canonical L= oop Form" chapter and not in the chapter about the actual simd construct. As clang and Intel don't error for that godbold example, I thought I was on= to something... Thanks for answering, Best, Paul On Thursday, December 15, 2022 21:53 CET, Tobias Burnus wrote: =C2=A0Hi, On 15.12.22 21:31, Grosse-Bley, Paul Leonard wrote: > I just ran into the issue that `#pragma omp simd` does not work on C++ it= erator loops (godbolt). > From going through the specifications I understand that this restriction = was part of 4.5 and 5.0, but was dropped with 5.1. I assume that it is about "non-pointer random access iterators" =E2=80=93 a= s the subject line states. In OpenMP 5.0, there is: "2.9.1 Canonical Loop Form": "In the simd construct the only random access iterator types that are allowed for var are pointer types." [OpenMP 5.0, 100:15-16] But I still see in OpenMP 5.1: "2.11.5.1 simd Construct": "Restrictions to the simd construct are as follows: ... [C++] The only random access iterator types that are allowed for the associated loops are pointer types." [OpenMP 5.1, 137:2, 137:22]. Same words as in 5.1 are also in OpenMP 5.2 in "10.4 simd Construct" [235:31]. Did I miss something? If so, can you provide the example? Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955 ------=_=-_OpenGroupware_org_NGMime-3379534-1671140433.592027-231--------