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 <frede...@codesourcery.com> 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