From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112561 invoked by alias); 6 Sep 2019 16:02:28 -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 112506 invoked by uid 89); 6 Sep 2019 16:02:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: esa4.mentor.iphmx.com Received: from esa4.mentor.iphmx.com (HELO esa4.mentor.iphmx.com) (68.232.137.252) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2019 16:02:26 +0000 IronPort-SDR: tSdX2xpJw6Y93fflrF5CA/fFNuxf29yku1vZkF2T7Jkrx/fqwKUA1stg+2sboA3IsGjM8SFYbH Q+9ZJAH5liS0k11RfEktnUZyGCuhg8uckVNaas9MsWYyzZn+5cZol+VSqvo1hDVsf+kdxgEOLJ qGvfXEmGMBLgkZ+9kQ7JTtBlD6UknKPr4Rxz4UsnNf5tESf6UkmZuMmFAOTKgWBnwPUDFKcHGP Pz4lCdgXKM0u16DasncYoJmVoSg8NH/tIt5LKC/f9TCOCJgXIGr2aKwbKwXO7VmpmSpeGCTpBa j4k= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 06 Sep 2019 08:02:25 -0800 IronPort-SDR: V4EGT0pAIT0HtlgxlU8t8ofzevDSJir6b/2ohGvuyc/+zadn3W5VlYmj6L8BC4hd3lsBnnpL9h KVKDe9d/dR8JzQ8eDmAUFLfBvZ3zJVaMnyOFzcyV4Hinm4YciDJF/u+XWsEanxxvoWvZVsBiVQ IjOAVuWNl5IegyDfNnGQQxIqWvAFJGQ0msOz4Ep/5of26tmIq7EUCQA6z8pGMZ4SI18lpsocLu g1Yi2D+T5n9B9WBsJ+ADlf/bj4srga5SrActaMjYuah0agNoZQp7uxwIR3do47zgpU0nlBQAtN FjU= From: Julian Brown To: CC: Thomas Schwinge , Andrew Stubbs Subject: [PATCH] [og9] Add omp_pause_resource{,_all} for AMD GCN Date: Fri, 06 Sep 2019 16:02:00 -0000 Message-ID: <20190906160213.69722-1-julian@codesourcery.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Return-Path: julian@codesourcery.com X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00412.txt.bz2 This patch adds some missing functions to the AMD GCN-specific target.c file. This fixes several link errors in the testsuite. Tested with offloading to AMD GCN. I will apply to the openacc-gcc-9-branch shortly. Julian ChangeLog libgomp/ * config/gcn/target.c (omp_pause_resource, omp_pause_resource_all): New functions, plus ialiases. --- libgomp/ChangeLog.openacc | 5 +++++ libgomp/config/gcn/target.c | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/libgomp/ChangeLog.openacc b/libgomp/ChangeLog.openacc index 438bd59b47b..d7a4c7a5f8a 100644 --- a/libgomp/ChangeLog.openacc +++ b/libgomp/ChangeLog.openacc @@ -1,3 +1,8 @@ +2019-09-06 Julian Brown + + * config/gcn/target.c (omp_pause_resource, omp_pause_resource_all): New + functions, plus ialiases. + 2019-09-05 Julian Brown * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to diff --git a/libgomp/config/gcn/target.c b/libgomp/config/gcn/target.c index 5ec57778772..db00551e695 100644 --- a/libgomp/config/gcn/target.c +++ b/libgomp/config/gcn/target.c @@ -47,3 +47,21 @@ GOMP_teams (unsigned int num_teams, unsigned int thread_limit) } gomp_num_teams_var = num_teams - 1; } + +int +omp_pause_resource (omp_pause_resource_t kind, int device_num) +{ + (void) kind; + (void) device_num; + return -1; +} + +int +omp_pause_resource_all (omp_pause_resource_t kind) +{ + (void) kind; + return -1; +} + +ialias (omp_pause_resource) +ialias (omp_pause_resource_all) -- 2.22.0