From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15795 invoked by alias); 31 May 2016 22:35:23 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 15778 invoked by uid 89); 31 May 2016 22:35:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:946, resident X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 31 May 2016 22:35:21 +0000 Received: from svr-orw-fem-04.mgc.mentorg.com ([147.34.97.41]) by relay1.mentorg.com with esmtp id 1b7sFp-0001mA-Uo from Cesar_Philippidis@mentor.com ; Tue, 31 May 2016 15:35:17 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.3.224.2; Tue, 31 May 2016 15:35:17 -0700 Subject: Re: Remove the unused OMP_CLAUSE_DEVICE_RESIDENT To: Thomas Schwinge , , , Jakub Jelinek References: <87wpmaqlii.fsf@kepler.schwinge.homeip.net> From: Cesar Philippidis Message-ID: <574E11A5.50903@codesourcery.com> Date: Tue, 31 May 2016 22:35:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <87wpmaqlii.fsf@kepler.schwinge.homeip.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00077.txt.bz2 On 05/31/2016 08:45 AM, Thomas Schwinge wrote: > While working on something else, I came across the following. Cesar, can > you please verify that this is really dead code in the Fortran front end, > which currently is the only producer of OMP_CLAUSE_DEVICE_RESIDENT? You're correct. Declare should be using map clauses for device resident and link. I think I ran into this last week when I backported Jakub's recent gfc_match_omp_clauses changes to gomp4. > Also, I noticed that the Fortran front end never creates OMP_CLAUSE_MAP > with GOMP_MAP_LINK or GOMP_MAP_DEVICE_RESIDENT -- how is OpenACC declare > working at all? Cesar, if this is not a simple question to answer, > please file a GCC PR, for somebody to have a look later. Declare might not be working in fortran, or at least not all of its clauses. I'll add this on my todo list. Right now I working on a subarray problem. Cesar