From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by sourceware.org (Postfix) with ESMTPS id E2BD7385DC14 for ; Wed, 15 Apr 2020 11:34:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E2BD7385DC14 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Thomas_Schwinge@mentor.com IronPort-SDR: R1GqJPTRYxzFhNOaXAhqNCi+RwOKezUKsY9KRgUXp63nuFNfZZo9f/0nMDUAT+27iYQ52X6pi1 wPjLvsB4ShAh8KJJWuK+9Mfe0X/j56cVC1lY0n3IOncdepLDcJSiUEKDrtnU+ak3ZfXKgPyUtC H1Cz0NcqvB4NW/q9dE52selB6OT8JBLBYy20i2duYYaFoMBprNLlWo3nqIY1jlpgpo6S7yZ+p5 7tls84xNj9DolSBrP1R4dXOPUlRcNoIIJzujixeLHmNYWLNMmGoior8QdyaLSTCzLzCmn7VRVJ Fw4= X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="47777951" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 15 Apr 2020 03:34:56 -0800 IronPort-SDR: k/59kijxQbcggAKs25ktdl0koDBUWRtGRp5U6eniXOosyh8zYpgT9xRFviRWBNolaJyMUsa2X9 ih+DkGQOd1xY7yL2JUMUWCuX9sXlWL9iEUNytRzGNcyNkY3uvHGjzWsbQbGyoOXTMd7DHe1n0o sZTPbWBLkX8j9/Ag5HbOAtOU/8K9jbj3NBbmlcBrCx1uVLfmH+QOjDQANGT0B5whuCWZDXWQ/V Gv9K/Wk+iis44jlDh5ZNvsO0TsCrpk7yaBd4tgGXld6liQTufXcT6Y3O2D5DHJ5QROVat5XT1u rMw= From: Thomas Schwinge To: Lewis Braley CC: Subject: Re: OpenACC parallelization In-Reply-To: References: User-Agent: Notmuch/0.29.1+93~g67ed7df (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Wed, 15 Apr 2020 13:34:41 +0200 Message-ID: <87v9m17zji.fsf@euler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, GIT_PATCH_2, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 11:34:59 -0000 Hi! On 2020-04-14T09:40:06+0100, Lewis Braley via Gcc-help wrote: > I have been trying to use OpenACC to allow for cpu-based loop > parallelization in GCC, however I cannot seem to get it working in either= C > or C++.> Thanks for your interest! > The PGI C++ compiler will successfully compile and run parallel > code. > > This stack overflow post has more details: > https://stackoverflow.com/questions/61017223/compiling-c-openacc-parallel= -cpu-code-using-gcc-g I answered on there, : | It's not yet supported in GCC to use OpenACC to schedule parallel loops o= nto multicore CPUs. Using OpenMP works for that, of course, and you can hav= e code with mixed OpenACC (for GPU offloading, as already present in your c= ode) and OpenMP directives (for CPU parallelization, not yet present in you= r code), so that the respective mechanism will be used depending on whether= compiling with `-fopenacc` vs. `-fopenmp`. | | Like PGI are doing, it certainly can be supported in GCC; we'll certainly= be able to implement that, but it has not yet been scheduled, has not yet = been funded for GCC. Gr=C3=BC=C3=9Fe Thomas ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstra=C3=9Fe 201, 80634 M=C3=BCnch= en / Germany Registergericht M=C3=BCnchen HRB 106955, Gesch=C3=A4ftsf=C3=BChrer: Thomas = Heurung, Alexander Walter