From patchwork Fri Nov 15 13:28:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 1195643 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-513601-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="DEUTV2oy"; 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 47DzhW4cbgz9sP4 for ; Sat, 16 Nov 2019 00:28:57 +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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=j6GhD/O6DkmbRsGafHlL5aCOOqGSTjjzSDGnwpSGfE6jXmhI9j OPU/mWeJzNmW+MmDEUGixUPCZv3v9QuKtU8Okk2X2BiL+oY5gBRUZ/9lohlTRP63 ggfGM0/6Mc+dAwxtgoPEBynKU2E+rCE1Vt83qHKDpkmekI+dqBWnoa3jU= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=n9xIZwadnwDpeHd90jy1EX6jUqo=; b=DEUTV2oym9DWUEAoKTVQ xbejpvpdolzwTRjHlObldMVwLwv9VDsYoUT/zHgDrnGZi6DgECcz1r5skuc1CS8X fBIepQa9TnohCDBk10kE3sw/KIlvVccdtHOIx8QfPHpD/cgJuuOhj0iqFpURoEyw m0k99All7oRP6kENIW3k+T0= Received: (qmail 67047 invoked by alias); 15 Nov 2019 13:28:50 -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 67036 invoked by uid 89); 15 Nov 2019 13:28:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SUBJ_OBFU_PUNCT_FEW, SUBJ_OBFU_PUNCT_MANY autolearn=ham version=3.3.1 spammy=nvidia, acc_device_t, acc_device_gcn, triggering X-HELO: esa1.mentor.iphmx.com Received: from esa1.mentor.iphmx.com (HELO esa1.mentor.iphmx.com) (68.232.129.153) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Nov 2019 13:28:48 +0000 IronPort-SDR: jSlSs1w2OG125mXGYQ+72YDoAK7Uwpg4jU13a3FHax7JaR1ePuv162MpZGio9HP3PipZMCiGbN ROgmBg92tjVbjFYLIUD4AxySz3UML+Q7qw4S+k4/QnBtHALYGNPaQX74OWj7GzeSQ1rdTNkgDC 0ePsh6/tG/ISLFd1j+CM9h/o02Qiaw6wRrlIs3OLZ7F5IPNiUleWKJJqBDtZfk+EHMb+FQlObY sjTI9ehdK20JLzDApfpsjTqZVHUJC6TobHjRD39sCvh8bjjkC7nioZqcCE6s1KR2X0AQuUP+hu sL4= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 15 Nov 2019 05:28:46 -0800 IronPort-SDR: h2o+QlrcD35ijjSDBo/Alokx9vwNA5jnTdmrSFKuQo2JGgzJ0ghzeIGMCnqURN9lCVB6bdT2rg yu9ZbHdWQCnGYUwkuZH40Ns6p864o1rPdNmmcy3ZqQu2U5jejydxIBpwOeCLkM4YpYdM1vGL5H Lll6gAlHbwgYoGf+bbQ2Cg9yRiNotG0uvSNUhIb9GfZQoTuD7aVW1YnUKYf1KOIQQ/7e+19OGu XQg+NdUm41kX9LU8aYasV9xmfcr1lanBu+3icSg295wc5v01BQfDDultbGP6EZ7IEsONe3HTPf uts= To: Thomas Schwinge , gcc-patches From: Tobias Burnus Subject: [Patch][libgomp] Add 'gcn' to oacc-init.c's name_of_acc_device_t Message-ID: Date: Fri, 15 Nov 2019 14:28:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 X-IsSubscribed: yes While investigating some other failure, I saw that 'gcn' was missing from that function. – It is only used in the error case and I failed to trigger it in a quick way. – Hence, only compiled and regtested w/o triggering this issue. If needed be, I can try harder, though. OK? Tobias PS: On the OG9 branch, there is a stub for _acc_device_hsa/_acc_device_intel_mic (but not on trunk) – but in this function, those fall through to 'default:'. 2019-11-15 Tobias Burnus libgomp/ * oacc-init.c (name_of_acc_device_t): Handle acc_device_gcn. diff --git a/libgomp/oacc-init.c b/libgomp/oacc-init.c index e1568c535b3..adc159e60b9 100644 --- a/libgomp/oacc-init.c +++ b/libgomp/oacc-init.c @@ -103,6 +103,7 @@ name_of_acc_device_t (enum acc_device_t type) case acc_device_host: return "host"; case acc_device_not_host: return "not_host"; case acc_device_nvidia: return "nvidia"; + case acc_device_gcn: return "gcn"; default: gomp_fatal ("unknown device type %u", (unsigned) type); } }