From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A00743858D33; Thu, 4 May 2023 16:08:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A00743858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683216504; bh=WbqvGN5eCmaZDLpku5hg2towRZYiWrUOy5bwktGMZ8I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uPFVp2rtY33GXU9w50J9EzLuxC9O1FwRQ46dJp/RdBhpmcHLSZTNUEVPNShvojdvC tw3KFCATh1m6ElCHTkEdKCuEqcbchzIRe5MUqUkV5gK7D919pR3Peot8RFWG5JdTmr oqzSEYnUjbF8Enu3HZ5Vri36XX1+/JAOn4XxFAwY= From: "thomas.meltzer1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109701] I have a MWE where an omp reduction breaks if I add the option for GPU offloading (even if it isn't used). Date: Thu, 04 May 2023 16:08:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: thomas.meltzer1 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109701 --- Comment #6 from tommelt --- Thank you. Interestingly, I tried your suggestion: "!$omp target teams distribute parallel do simd if(target:is_GPU) reduction(max:max_diff) collapse(2)" It works for gfortran v 12.2.0=20 but it does not work for: * gfortran v 11.3.0 or; * gfortran v 10.3.0=