From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 4656A3889E09 for ; Thu, 15 Dec 2022 20:53:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4656A3889E09 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.96,248,1665475200"; d="scan'208";a="90412943" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 15 Dec 2022 12:53:56 -0800 IronPort-SDR: Wsozzf1e0XEvP3Ml9DHKTssruGw8Wd0gFtdKe/GwVynNZmxfopFQQMjf8nHF4kHGCIoFsqfcE+ 5WmQHaIfPHcZpPSe/vt+yig/YPX7Rp9yKIoL4RUqNsNJAbuwlpbdc58XtcAxrEeMj6bnb+T1/h e0fje6Rl07Lz8KcQmIANp21Gnh3cxUDpDGj6QPQrSh8/6UAd7VJwTY0NM6abVaTdsiosQlPpiR 0mEgvLiYBEtpCr3E1mAMLxx8jWZsTggaeJBfscwTIpoacJyYMgVV2gzwmfUtPQxDFTK/MnysrE HIw= Message-ID: <656ea043-b4aa-dad3-1806-3145320623c2@codesourcery.com> Date: Thu, 15 Dec 2022 21:53:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: GOMP: OMP 5.1: simd construct for non-pointer random access iterators Content-Language: en-US To: "Grosse-Bley, Paul Leonard" , References: <3759c6-639b8400-1f1-4a5acd00@89943933> From: Tobias Burnus In-Reply-To: <3759c6-639b8400-1f1-4a5acd00@89943933> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-15.mgc.mentorg.com (139.181.222.15) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, 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