From patchwork Wed Jan 29 14:28:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederik Harwath X-Patchwork-Id: 1230928 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-518498-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.a=rsa-sha1 header.s=default header.b=PLQEofdL; 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 4875TH0fM4z9s29 for ; Thu, 30 Jan 2020 01:29:05 +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:cc:message-id:date:mime-version:content-type; q= dns; s=default; b=q+gsJ01qB3DNgNCeNsBJFaoAgsdkkoYgzOBYGp6PThzhAR uK77XBHwKrabQGb7s21L7BD7pisQhuO1P+/OEU87a53hkirsVx9E1AC29LEdpofi ydiPxaF5aFXohW2zkXBvZKgsMUr3wQ20a8fXO8qOy6movykjnzPa7LTf1LOVU= 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:cc:message-id:date:mime-version:content-type; s= default; bh=Mkm/OLs9GCb9QrxEDyYOmFIO51M=; b=PLQEofdL7hTFn9N8B12W PLwZJ6cG6Hkjc9jQgqADaO1CfkzXONLpjN42V6jyQJ3ur+oXaZ7qCqzMc8qi7ySj /1Dxr0mqrEyAe1yS1o32qCYGDEkye/D97EtQuClaBHky8QBBid+jnjrISFbEzozH 0jPg13WFPHe6e13qIfC4fxE= Received: (qmail 92043 invoked by alias); 29 Jan 2020 14:28:57 -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 92033 invoked by uid 89); 29 Jan 2020 14:28:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: esa3.mentor.iphmx.com Received: from esa3.mentor.iphmx.com (HELO esa3.mentor.iphmx.com) (68.232.137.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Jan 2020 14:28:55 +0000 IronPort-SDR: DMMZ1g5x1pEJ1gNbByw+JAgpwAEiLSMabQHDzUGBpzle/7vDKceFay1k6XDu06tT/x++3S16Bd /7iplpXN2QaoholRKOQHOpf8ntXmkt8120XqGoUJoK+r9XLquwk1uKdjQBQFSPmRl2TaFEWXGf spVBDCjATX0TMNrZYqxSL9SoqDt42M+zCoqJj8z/QgSl/HEu5D+ubITy79xetsh4YULDTW7wWr C6P7lrN06oxTO4X5PXPyuncupocjRC3aLeG0Iwpzf7iwcIO3I+ngs3n8bJDr2n3Q4fh8N6PpPr Shk= Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 29 Jan 2020 06:28:54 -0800 IronPort-SDR: wdmizRXtXWppK8gN0OhQGutSi0ZaK4jFo26w9BJZNBmhcGAodeU/kokzj2AC7SuwTqsycnhDnp RMn5iqzX042g== To: Thomas Schwinge , GCC Patches From: "Harwath, Frederik" Subject: [PATCH][OpenACC] Add acc_device_radeon to name_of_acc_device_t function CC: Jakub Jelinek X-Pep-Version: 2.0 Message-ID: Date: Wed, 29 Jan 2020 15:28:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 X-IsSubscribed: yes Hi, we should handle acc_device_radeon in the name_of_acc_device_t function which is used in libgomp/oacc-init.c to display the name of devices in several error messages. Ok to commit this patch to master? Best regards, Frederik From 6aacba3e8123ce5e0961857802fd7d8a103aa96b Mon Sep 17 00:00:00 2001 From: Frederik Harwath Date: Mon, 27 Jan 2020 15:41:26 +0100 Subject: [PATCH] Add acc_device_radeon to name_of_acc_device_t function libgomp/ * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon. --- libgomp/oacc-init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgomp/oacc-init.c b/libgomp/oacc-init.c index 89a30b3e716..ef12b4c16d0 100644 --- a/libgomp/oacc-init.c +++ b/libgomp/oacc-init.c @@ -115,6 +115,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_radeon: return "radeon"; default: unknown_device_type_error (type); } __builtin_unreachable (); -- 2.17.1