From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A051384AB69; Thu, 11 Apr 2024 10:07:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A051384AB69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712830074; bh=gUpt/Awz53ryZoftrq9coRqgbzBj2U1XvCx3rlz8jqQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Xu4ElwaMzw69gl5B800WPLuHqosgAMlXWBXezx1UD3qwaO6MBVgHGBJG9IqoLT9i8 fQ7uwNj314Z1BDOt7/eAv75/2pRDV98Kd1Ch3ZcBuIvLeh/Y3nZRg1RJQE5qt6sH8p SQfxxtFJj7Yi7ljIEe+it5ETKR50Jp3z1mkJijRQ= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/114690] OpenMP 'indirect' clause: dynamic image loading/unloading Date: Thu, 11 Apr 2024 10:07:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge 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=3D114690 --- Comment #1 from Thomas Schwinge --- I suggest that in the short term, we at least add a safeguard in the 'GOMP_OFFLOAD_load_image's to error out if 'GOMP_INDIRECT_ADDR_MAP' has alr= eady been set (that should address (a), right?), and in the 'GOMP_OFFLOAD_unload_image's error out if 'GOMP_INDIRECT_ADDR_MAP' has been= set (that should address (b) -- right?). (I'm assuming that stale mappings bei= ng present may potentially be problematic?) Those should be no-ops for the presumably common case that either dynamic loading/unloading of images isn't used at all, or if it is, that no 'indire= ct' clauses are actually present.=