From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30393 invoked by alias); 15 Feb 2016 18:44:18 -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 30235 invoked by uid 89); 15 Feb 2016 18:44:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy= X-HELO: smtp.ispras.ru Received: from smtp.ispras.ru (HELO smtp.ispras.ru) (83.149.199.79) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Feb 2016 18:44:15 +0000 Received: from condor.intra.ispras.ru (unknown [83.149.199.91]) by smtp.ispras.ru (Postfix) with ESMTP id 1DEC4226B4 for ; Mon, 15 Feb 2016 21:44:13 +0300 (MSK) Received: by condor.intra.ispras.ru (Postfix, from userid 23246) id E591E1221D08; Mon, 15 Feb 2016 21:44:12 +0300 (MSK) From: Alexander Monakov To: gcc-patches@gcc.gnu.org Subject: [gomp-nvptx 2/5] Revert "nvptx plugin: bump heap size to 1GB" Date: Mon, 15 Feb 2016 18:44:00 -0000 Message-Id: <1455561852-9237-3-git-send-email-amonakov@ispras.ru> In-Reply-To: <1455561852-9237-1-git-send-email-amonakov@ispras.ru> References: <1455561852-9237-1-git-send-email-amonakov@ispras.ru> X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg01004.txt.bz2 This reverts commit 7d36b841341cde96f6cf89c5232916062da3fe4c. The change was not well motivated: soft stacks would not fit in the default 8 MB heap only with multiple teams. With the transition to host-allocated soft stacks, libgomp uses the device heap only for relatively small allocations. Revert 2015-12-09 Alexander Monakov * plugin/plugin-nvptx.c (nvptx_open_device): Adjust heap size. diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index 79fd253..cb6a3ac 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -694,10 +694,6 @@ nvptx_open_device (int n) init_streams_for_device (ptx_dev, async_engines); - r = cuCtxSetLimit (CU_LIMIT_MALLOC_HEAP_SIZE, 1<<30); - if (r != CUDA_SUCCESS) - GOMP_PLUGIN_fatal ("cuCtxSetLimit error: %s", cuda_error (r)); - return ptx_dev; }