Commit 591f869a by Andrew Stubbs

Remove gfx801 "carrizo" support

2020-02-03  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config.gcc: Remove "carrizo" support.
	* config/gcn/gcn-opts.h (processor_type): Likewise.
	* config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
	* config/gcn/gcn.opt (gpu_type): Likewise.
	* config/gcn/t-omp-device: Likewise.

	libgomp/
	* plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
	(gcn_gfx801_s): Remove.
	(isa_hsa_name): Remove gfx801.
	(isa_gcc_name): Remove gfx801/carizzo.
	(isa_code): Remove gfx801.
parent 3539fc13
2020-02-03 Andrew Stubbs <ams@codesourcery.com>
* config.gcc: Remove "carrizo" support.
* config/gcn/gcn-opts.h (processor_type): Likewise.
* config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
* config/gcn/gcn.opt (gpu_type): Likewise.
* config/gcn/t-omp-device: Likewise.
2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com> 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
PR target/91816 PR target/91816
......
...@@ -4404,7 +4404,7 @@ case "${target}" in ...@@ -4404,7 +4404,7 @@ case "${target}" in
for which in arch tune; do for which in arch tune; do
eval "val=\$with_$which" eval "val=\$with_$which"
case ${val} in case ${val} in
"" | carrizo | fiji | gfx900 | gfx906 ) "" | fiji | gfx900 | gfx906 )
# OK # OK
;; ;;
*) *)
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
/* Which processor to generate code or schedule for. */ /* Which processor to generate code or schedule for. */
enum processor_type enum processor_type
{ {
PROCESSOR_CARRIZO,
PROCESSOR_FIJI, PROCESSOR_FIJI,
PROCESSOR_VEGA PROCESSOR_VEGA
}; };
......
...@@ -2571,8 +2571,6 @@ gcn_omp_device_kind_arch_isa (enum omp_device_kind_arch_isa trait, ...@@ -2571,8 +2571,6 @@ gcn_omp_device_kind_arch_isa (enum omp_device_kind_arch_isa trait,
case omp_device_arch: case omp_device_arch:
return strcmp (name, "gcn") == 0; return strcmp (name, "gcn") == 0;
case omp_device_isa: case omp_device_isa:
if (strcmp (name, "carrizo") == 0)
return gcn_arch == PROCESSOR_CARRIZO;
if (strcmp (name, "fiji") == 0) if (strcmp (name, "fiji") == 0)
return gcn_arch == PROCESSOR_FIJI; return gcn_arch == PROCESSOR_FIJI;
if (strcmp (name, "gfx900") == 0) if (strcmp (name, "gfx900") == 0)
......
...@@ -26,9 +26,6 @@ Name(gpu_type) Type(enum processor_type) ...@@ -26,9 +26,6 @@ Name(gpu_type) Type(enum processor_type)
GCN GPU type to use: GCN GPU type to use:
EnumValue EnumValue
Enum(gpu_type) String(carrizo) Value(PROCESSOR_CARRIZO)
EnumValue
Enum(gpu_type) String(fiji) Value(PROCESSOR_FIJI) Enum(gpu_type) String(fiji) Value(PROCESSOR_FIJI)
EnumValue EnumValue
...@@ -38,11 +35,11 @@ EnumValue ...@@ -38,11 +35,11 @@ EnumValue
Enum(gpu_type) String(gfx906) Value(PROCESSOR_VEGA) Enum(gpu_type) String(gfx906) Value(PROCESSOR_VEGA)
march= march=
Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_arch) Init(PROCESSOR_CARRIZO) Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_arch) Init(PROCESSOR_FIJI)
Specify the name of the target GPU. Specify the name of the target GPU.
mtune= mtune=
Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_tune) Init(PROCESSOR_CARRIZO) Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_tune) Init(PROCESSOR_FIJI)
Specify the name of the target GPU. Specify the name of the target GPU.
m32 m32
......
omp-device-properties-gcn: $(srcdir)/config/gcn/gcn.c omp-device-properties-gcn: $(srcdir)/config/gcn/gcn.c
echo kind: gpu > $@ echo kind: gpu > $@
echo arch: gcn >> $@ echo arch: gcn >> $@
echo isa: carrizo fiji gfx900 gfx906 >> $@ echo isa: fiji gfx900 gfx906 >> $@
2020-02-03 Andrew Stubbs <ams@codesourcery.com>
* plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
(gcn_gfx801_s): Remove.
(isa_hsa_name): Remove gfx801.
(isa_gcc_name): Remove gfx801/carizzo.
(isa_code): Remove gfx801.
2020-02-03 Julian Brown <julian@codesourcery.com> 2020-02-03 Julian Brown <julian@codesourcery.com>
Tobias Burnus <tobias@codesourcery.com> Tobias Burnus <tobias@codesourcery.com>
......
...@@ -403,7 +403,6 @@ struct gcn_image_desc ...@@ -403,7 +403,6 @@ struct gcn_image_desc
See https://llvm.org/docs/AMDGPUUsage.html#amdgpu-ef-amdgpu-mach-table */ See https://llvm.org/docs/AMDGPUUsage.html#amdgpu-ef-amdgpu-mach-table */
typedef enum { typedef enum {
EF_AMDGPU_MACH_AMDGCN_GFX801 = 0x028,
EF_AMDGPU_MACH_AMDGCN_GFX803 = 0x02a, EF_AMDGPU_MACH_AMDGCN_GFX803 = 0x02a,
EF_AMDGPU_MACH_AMDGCN_GFX900 = 0x02c, EF_AMDGPU_MACH_AMDGCN_GFX900 = 0x02c,
EF_AMDGPU_MACH_AMDGCN_GFX906 = 0x02f, EF_AMDGPU_MACH_AMDGCN_GFX906 = 0x02f,
...@@ -1629,7 +1628,6 @@ elf_gcn_isa_field (Elf64_Ehdr *image) ...@@ -1629,7 +1628,6 @@ elf_gcn_isa_field (Elf64_Ehdr *image)
return image->e_flags & EF_AMDGPU_MACH_MASK; return image->e_flags & EF_AMDGPU_MACH_MASK;
} }
const static char *gcn_gfx801_s = "gfx801";
const static char *gcn_gfx803_s = "gfx803"; const static char *gcn_gfx803_s = "gfx803";
const static char *gcn_gfx900_s = "gfx900"; const static char *gcn_gfx900_s = "gfx900";
const static char *gcn_gfx906_s = "gfx906"; const static char *gcn_gfx906_s = "gfx906";
...@@ -1642,8 +1640,6 @@ static const char* ...@@ -1642,8 +1640,6 @@ static const char*
isa_hsa_name (int isa) { isa_hsa_name (int isa) {
switch(isa) switch(isa)
{ {
case EF_AMDGPU_MACH_AMDGCN_GFX801:
return gcn_gfx801_s;
case EF_AMDGPU_MACH_AMDGCN_GFX803: case EF_AMDGPU_MACH_AMDGCN_GFX803:
return gcn_gfx803_s; return gcn_gfx803_s;
case EF_AMDGPU_MACH_AMDGCN_GFX900: case EF_AMDGPU_MACH_AMDGCN_GFX900:
...@@ -1662,8 +1658,6 @@ static const char* ...@@ -1662,8 +1658,6 @@ static const char*
isa_gcc_name (int isa) { isa_gcc_name (int isa) {
switch(isa) switch(isa)
{ {
case EF_AMDGPU_MACH_AMDGCN_GFX801:
return "carrizo";
case EF_AMDGPU_MACH_AMDGCN_GFX803: case EF_AMDGPU_MACH_AMDGCN_GFX803:
return "fiji"; return "fiji";
default: default:
...@@ -1676,9 +1670,6 @@ isa_gcc_name (int isa) { ...@@ -1676,9 +1670,6 @@ isa_gcc_name (int isa) {
static gcn_isa static gcn_isa
isa_code(const char *isa) { isa_code(const char *isa) {
if (!strncmp (isa, gcn_gfx801_s, gcn_isa_name_len))
return EF_AMDGPU_MACH_AMDGCN_GFX801;
if (!strncmp (isa, gcn_gfx803_s, gcn_isa_name_len)) if (!strncmp (isa, gcn_gfx803_s, gcn_isa_name_len))
return EF_AMDGPU_MACH_AMDGCN_GFX803; return EF_AMDGPU_MACH_AMDGCN_GFX803;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment