From patchwork Wed Sep 23 17:22:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Monakov X-Patchwork-Id: 521779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 E84381401DE for ; Thu, 24 Sep 2015 03:24:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=myCVg2Px; dkim-atps=neutral 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:in-reply-to:references; q=dns; s= default; b=Z5aPuHxvdxaLnymk4dhfYlfgz9/YE63PcErnxO2h740muT2HlUpNj siFdjr3obCU8iDrWRlBLH/IfxOQsUOgAONUAEsjg9nZinHeJ+ChWKfkkCZEiHLil G0s2CabLp/ErnDpjp/t2q7aMU4rqs+oJFYk+ftjO/9d78SdHa8p/WU= 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:in-reply-to:references; s= default; bh=XWxUsct4ZeNnq1XOTBgMtqxlZso=; b=myCVg2PxPrvTWCY0Nw0F vpSouzZVvsnTefcodKP5iZpqQOaL/AJ4LxYSvJPajDrpjyZVYmc5nsgrtuSPsIyR mCVJIA5DxvIdGGRLCScwMYE+PH73mZiJFdQVh1odIB8RsGdpkszbtTIC2H6wMIKT lvCBuUMydrmIM2Fnfi0uzxU= Received: (qmail 85404 invoked by alias); 23 Sep 2015 17:22:47 -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 85289 invoked by uid 89); 23 Sep 2015 17:22:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 23 Sep 2015 17:22:42 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zenkc-00068P-Hb for gcc-patches@gcc.gnu.org; Wed, 23 Sep 2015 13:22:40 -0400 Received: from smtp.ispras.ru ([83.149.199.79]:40121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zenkc-000686-5J for gcc-patches@gcc.gnu.org; Wed, 23 Sep 2015 13:22:38 -0400 Received: from condor.intra.ispras.ru (unknown [83.149.199.91]) by smtp.ispras.ru (Postfix) with ESMTP id E456F21D56; Wed, 23 Sep 2015 20:22:33 +0300 (MSK) Received: by condor.intra.ispras.ru (Postfix, from userid 23246) id 90D5C1225DA7; Wed, 23 Sep 2015 20:22:33 +0300 (MSK) From: Alexander Monakov To: gcc-patches@gcc.gnu.org Cc: Jakub Jelinek , Arutyun Avetisyan , Alexander Monakov Subject: [gomp4 6/8] libgomp: provide stub bar.h on nvptx Date: Wed, 23 Sep 2015 20:22:20 +0300 Message-Id: <1443028942-4081-7-git-send-email-amonakov@ispras.ru> In-Reply-To: <1443028942-4081-1-git-send-email-amonakov@ispras.ru> References: <1443028942-4081-1-git-send-email-amonakov@ispras.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 83.149.199.79 X-IsSubscribed: yes This stub header only provides empty struct gomp_barrier_t. For now I've punted on providing a minimally-correct implementation. * config/nvptx/bar.h: New file. --- libgomp/config/nvptx/bar.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 libgomp/config/nvptx/bar.h diff --git a/libgomp/config/nvptx/bar.h b/libgomp/config/nvptx/bar.h new file mode 100644 index 0000000..009d85f --- /dev/null +++ b/libgomp/config/nvptx/bar.h @@ -0,0 +1,38 @@ +/* Copyright (C) 2015 Free Software Foundation, Inc. + + This file is part of the GNU Offloading and Multi Processing Library + (libgomp). + + Libgomp is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + Under Section 7 of GPL version 3, you are granted additional + permissions described in the GCC Runtime Library Exception, version + 3.1, as published by the Free Software Foundation. + + You should have received a copy of the GNU General Public License and + a copy of the GCC Runtime Library Exception along with this program; + see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + . */ + +/* This is an NVPTX specific implementation of a barrier synchronization + mechanism for libgomp. This type is private to the library. This + implementation is a stub, for now. */ + +#ifndef GOMP_BARRIER_H +#define GOMP_BARRIER_H 1 + +typedef struct +{ +} gomp_barrier_t; + +typedef unsigned int gomp_barrier_state_t; + +#endif /* GOMP_BARRIER_H */