From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B7C33858D35; Thu, 3 Nov 2022 16:10:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B7C33858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667491832; bh=ovNrULh+iMvf4OG56Ja6Vke4LCngTxBzBqqgVeP1ChE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mjgtd/4Q7Sa0WdEylKZeEWc60zam0VsZ+AI/a5Yd+1J0Xx3uac2jSJJsDP3EGABrH urXdiL5lE6f7/ks1wR1oI5q5dmYwfLmN4hAobxfsxqGF5QCpZhE29r72lY/QwFc65I j4T9zxlj/zNUrg755nvOs9qok7pzoBijX//uzP4I= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106316] [OpenMP] Auto "declare target" should honor 'declare variant' kind(nohost) Date: Thu, 03 Nov 2022 16:10:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: openmp 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: 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=3D106316 --- Comment #2 from Tobias Burnus --- I note that the OpenMP example document has a similar example at https://github.com/OpenMP/examples-internal/pull/329 for OpenMP-Examples Issue https://github.com/OpenMP/spec/issues/3332 For that example, GCC produces device code, which according to the testcase= it shouldn't. Result: The Fortran example currently fails with nvptx as Fortran 'print' is not yet supported. (Scheduled to become available. The C 'printf' is availa= ble and AMDGCN also has both.) Note: Issue/PR is unfortunately not publicly accessible. The example is not= in the 5.2.1 example document, scheduled to be released really soon (for SC22, i.e. mid-Nov 22). It might become publicly available next year for SC23.=