From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109147 invoked by alias); 7 Dec 2015 11:46:55 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 109135 invoked by uid 89); 7 Dec 2015 11:46:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 07 Dec 2015 11:46:53 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 5FAB8C001242; Mon, 7 Dec 2015 11:46:52 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tB7BkopN030662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 7 Dec 2015 06:46:51 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id tB7BkmvS003670; Mon, 7 Dec 2015 12:46:48 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id tB7Bkjwo003669; Mon, 7 Dec 2015 12:46:45 +0100 Date: Mon, 07 Dec 2015 11:46:00 -0000 From: Jakub Jelinek To: GCC Patches , Richard Biener , Martin Liska , Michael Matz Subject: Re: [hsa 0/10] Merge of HSA branch Message-ID: <20151207114645.GV5675@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20151207111758.GA24234@virgil.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151207111758.GA24234@virgil.suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00724.txt.bz2 On Mon, Dec 07, 2015 at 12:17:58PM +0100, Martin Jambor wrote: > Because I have not been able to come up with any solution to failing > libgomp/testsuite/libgomp.c++/target-2.C, I have disabled use of > dynamic parallelism in this merge (I keep it on the branch) and > therefore entirely rely on the gridification process to run loops on > the accelerator, because gridified constructs do not have this issue > (passing private symbols by reference). I'm fine with not doing it in this series, but I'd strongly prefer if dynamic parallelism is added for GCC 6.1. Even for PTX we'll need some IPA analysis on what functions might run in the various OpenMP contexts (teams, parallel, simd) and what functions contains such directives, and let the backends (or HSA) do something based on that for sharing of the vars, or other properties of the function code generation. > HSA tests are still missing, I would need some guidance as to how to > best implement them (specially to test gridification which of course > does not happen for other accelerators). There are no failing > testcases if HSA is not configured. If it is, there are some, all of > which fall into one the following categories: > > 1) HSA cannot compile a function for one reason or another (most > common cause is inability of HSA to take an address of a function > or make an indirect call) and gives a warning, which is regarded > as an "excess error" by dejagnu. It would be good if there is a -W* switch to turn such warnings off. Not just for the purposes of dejagnu libgomp testing, but say one might try to compile a program primarily say for XeonPhi or PTX offloading, but have HSA enabled to, but care primarily about the former two, etc. > 2) When HSA is not emitted for a function, libgomp runs a host > fallback instead of it. When the test queries > omp_is_initial_device and asserts it returns false, the test > fails. Do you have examples of which tests fall into this category? In any case, it will be needed to also update the wiki page with details on how to build the HSA support in, what are the prerequisities etc. Jakub