+2019-08-08 Julian Brown <julian@codesourcery.com>
+
+ * plugin/configfrag.ac (amdgcn): Set tgt_plugin.
+ * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
+ Add AMD GCN support.
+ (check_effective_target_openacc_amdgcn_accel_selected): Test
+ offload_target instead of offload_target_openacc.
+ * testsuite/libgomp.oacc-c++/c++.exp (amdgcn*): Rename stanza to...
+ (gcn): ...this. Don't set tagopt redundantly here.
+ * testsuite/libgomp.oacc-c/c.exp (amdgcn*, gcn): Likewise.
+ * testsuite/libgomp.oacc-fortran/fortran.exp (amdgcn*, gcn): Likewise.
+ * configure: Regenerated.
+
2019-08-08 Julian Brown <julian@codesourcery.com>
* plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_exec_params,
nvptx* {
return "nvidia"
}
+ amdgcn* {
+ return "gcn"
+ }
default {
error "Unknown offload target: $offload_target"
}
if { ![check_effective_target_openacc_amdgcn_accel_present] } {
return 0;
}
- global offload_target_openacc
- if { [string match "amdgcn*" $offload_target_openacc] } {
+ global offload_target
+ if { [string match "amdgcn*" $offload_target] } {
return 1;
}
return 0;