From patchwork Fri Sep 6 16:02:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Brown X-Patchwork-Id: 1159098 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-508521-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XnvpAWAQ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Q2QR1RPsz9s7T for ; Sat, 7 Sep 2019 02:02:52 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; q=dns; s=default; b=bDQ PrXV6vaopbAEqHwy0hRozvPiYb7cwE/HVL8lBpbapFIrVf9VV/JKPdDjuFqahDrm vvhSRfS+0zeavYtW4YHR/vhZtECRZl8AOJktO+uUwfh+coYmSLfnlOqVkE6sjVzS CQjjI30AJhT3J5apruRzmkxeYTgm16jqzg+A1aNg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=default; bh=SKICz0c3H yGdhxvUNg0Fn/OhQ+w=; b=XnvpAWAQS+xf1aCRU8NjFhzSN/k54PCGBtlYaS960 6m4FNAgLCKff8lRzSEZ6vKW1yiwmmd5OFa+aiC00ka/44/WnHIyPdQtC2hrfU2Tp F3HP6b6bLhY09GaTX4NnhKFL+sv1uvg3EaHVIiIrTqVOi/fawzc5LadIrM8KwZbe pc= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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, 6 Sep 2019 09:02:11 -0700 Message-ID: <20190906160213.69722-1-julian@codesourcery.com> MIME-Version: 1.0 X-IsSubscribed: yes 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)