From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F5693858D1E; Tue, 8 Feb 2022 14:47:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F5693858D1E From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/104423] [libgomp, testsuite] Add means to do accelerator-only testing in libgomp Date: Tue, 08 Feb 2022 14:47:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: openacc, openmp X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2022 14:47:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104423 --- Comment #3 from Tom de Vries --- (In reply to Thomas Schwinge from comment #2) > For OpenMP test cases, we'd either have to manually mark them up (error > prone and generally ugly), or scan the source file(s) (error prone and > generally ugly), or use some kind of marker that gets set during compilat= ion > if any offloading code has been generated. I was thinking along the lines of already existing markers in the exec: ... $ nm for-3.exe | grep offload U GOMP_offload_register_ver U GOMP_offload_unregister_ver 0000000000a59718 D __offload_funcs_end 0000000000a58a58 d .offload_func_table 0000000000a58a58 D __offload_func_table 0000000000a5ca38 D __offload_vars_end 0000000000a59718 d .offload_var_table 0000000000a59718 D __offload_var_table ... Say, if the exec doesn't have a __offload_func_table, it can be skipped. This would allow to do one test run, where you run all the tests, and gener= ate the offloading tests list, and then several more runs (using the same sourc= es, so the list is still up to date) where you just do the accelerator tests.=