From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 382C0384AB66; Thu, 11 Apr 2024 10:07:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 382C0384AB66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712830049; bh=2UFquOT2hDXvlIxFLKOmeqZtFS87Vx1ppQL6XORxFag=; h=From:To:Subject:Date:From; b=NZ7uiyJaLlDZdpKzXzVGqZ7N/Ef75Ne9ks3u13yGQpct6M+vySBrUaeHFKvGJMGvt RrIE1db9fZrsmoE5tQaSvzL3UeuQpY4RNgEGY0v27XNp4xTmx0UOvf2mN12dIt5XPo sl6ydluVmDdTNTSOqguRJRVOzgZ2q4QJYxZcJc9s= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/114690] New: OpenMP 'indirect' clause: dynamic image loading/unloading Date: Thu, 11 Apr 2024 10:07:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 Bug ID: 114690 Summary: OpenMP 'indirect' clause: dynamic image loading/unloading Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: burnus at gcc dot gnu.org, jakub at gcc dot gnu.org, kcy at codesourcery dot com Target Milestone: --- The OpenMP 'indirect' clause mapping table is not populated at image load t= ime (host-side), but upon the first device kernel invocation (device-side: 'build_indirect_map'), and is then immutable. This is sufficient for a lot of cases, but breaks if additional images are loaded after the first device kernel invocation (new mappings not added), o= r if images get unloaded (stale mappings not retired). Reference: "[PATCH] openmp: Add support for the 'indirect' clause in C/C++", "Also, fo= r my understanding: [...]" ff.=