From patchwork Tue Nov 4 22:46:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 406832 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 D60481400A3 for ; Wed, 5 Nov 2014 09:46:44 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=o/hXVaR1su17Q3u9FQNhMh8jSLt1VveXjqFeA8nd/Kk EAF9h17zPxZqyWUA8fxgXtpVDD6zYw/dwslWc0/RDE1lDgBnFbjNXiHoGGizxJuv +Om85uOE37u+25gVng/c6VUg28ayIZmq2tLeZ4tydALgqaDnqT9u+YJ4+0KofMoo = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=+StooVGKpw7rbZtG09y+Iwmt/00=; b=qs7EedI2Gf0dRJMh8 j9C0TVs3s3P0GKbo/s9UHKr22vKcNnXhJfmgIQCtuxfq3Err8qpTUcxL2bDTtMsS ahyQ56YA0CfMCBUVBOuGOIkrjtoEsQNJ1GOqAawTOTX/Z2GHaPOE9t364nweSRul fGR3HALqYOuD2NcI+F+Weq9CUA= Received: (qmail 11677 invoked by alias); 4 Nov 2014 22:46:37 -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 11661 invoked by uid 89); 4 Nov 2014 22:46:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 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 ESMTP; Tue, 04 Nov 2014 22:46:35 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Xlmrv-0001zQ-JE from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Tue, 04 Nov 2014 14:46:31 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Tue, 4 Nov 2014 22:46:30 +0000 Message-ID: <54595743.2080203@mentor.com> Date: Tue, 4 Nov 2014 23:46:27 +0100 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Thomas Schwinge CC: GCC Patches Subject: [gomp4] Fix libgomp-oacc.c/lib-66.c testcase Thomas, This patch fixes the libgomp-oacc.c/lib-66.c testcase. It allows the test to run for non-shared mem accelerators, and skips the test otherwise. ok for gomp-4_0-branch? Thanks, - Tom 2014-11-03 Tom de Vries * testsuite/libgomp.oacc-c/lib-66.c: Skip for shared memory accelerators. (main): Use acc_device_default instead of acc_device_nvidia. diff --git a/libgomp/testsuite/libgomp.oacc-c/lib-66.c b/libgomp/testsuite/libgomp.oacc-c/lib-66.c index 360c05b..398dc2a 100644 --- a/libgomp/testsuite/libgomp.oacc-c/lib-66.c +++ b/libgomp/testsuite/libgomp.oacc-c/lib-66.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */ #include #include @@ -12,7 +13,7 @@ main (int argc, char **argv) unsigned char *h; void *d; - acc_init (acc_device_nvidia); + acc_init (acc_device_default); h = (unsigned char *) malloc (N); @@ -41,7 +42,7 @@ main (int argc, char **argv) free (h); - acc_shutdown (acc_device_nvidia); + acc_shutdown (acc_device_default); return 0; } -- 1.9.1