From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 592553858404; Tue, 8 Feb 2022 14:15:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 592553858404 From: "tschwinge 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:15:25 +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: tschwinge 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: cc everconfirmed keywords bug_status cf_reconfirmed_on see_also 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:15:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104423 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tschwinge at gcc dot gnu.o= rg Ever confirmed|0 |1 Keywords| |openacc, openmp Status|UNCONFIRMED |NEW Last reconfirmed| |2022-02-08 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D66005 --- Comment #2 from Thomas Schwinge --- (In reply to Tom de Vries from comment #0) > I noticed that a lot of time is spent running libgomp tests that do not u= se the accelerator, and which are not needed for my purposes. We can assume that effectively all OpenACC test cases use any available GPU= s. For OpenMP test cases indeed there is no clear answer. > It would be nice if libgomp provided a mode to run only tests that use th= e accelerator, to drive down the test-board.sh execution time. We may add a knob to skip the OpenACC '-foffload=3Ddisable' testing. For OpenMP test cases, we'd either have to manually mark them up (error pro= ne and generally ugly), or scan the source file(s) (error prone and generally ugly), or use some kind of marker that gets set during compilation if any offloading code has been generated. Regarding the latter, you also reported: (In reply to Tom de Vries from comment #1) > Looking at f.i. test-case for-3.c, compilation takes 3 minutes We should be able to at least mitigate that problem via my PR66005 idea. > and execution a few seconds. It would make sense to reuse the executable. I suppose you mean re-use across what currently are independent libgomp testsuite invocations: (In reply to Tom de Vries from comment #1) > One of the dimensions that I test is env var GOMP_NVPTX_JIT, with values: > - -O0, and > - default (using unset GOMP_NVPTX_JIT), which supposedly is -O4. For OpenACC, we'd hook that into the existing looping over any available GP= Us (plus host fallback). For OpenMP, there currently is no such looping. If paralellizing compilation via PR66005 is not sufficient then indeed we h= ave to think about switching OpenACC testing to a mode where only once we do compile (without any '-foffload=3D[...]), and then loop over 'ACC_DEVICE_TY= PE' etc.=