+2020-01-17 Andrew Stubbs <ams@codesourcery.com>
+
+ * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
+ acc_device_radeon.
+ (openacc): Likewise.
+ * openacc.f90 (openacc_kinds): Likewise.
+ (openacc): Likewise.
+ * openacc.h (acc_device_t): Likewise.
+ * openacc_lib.h: Likewise.
+ * testsuite/lib/libgomp.exp
+ (check_effective_target_openacc_amdgcn_accel_present): Likewise.
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
+ (cb_compute_construct_end): Likewise.
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
+ (cb_enqueue_launch_start): Likewise.
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
+ (cb_enter_data_end): Likewise.
+ (cb_exit_data_start): Likewise.
+ (cb_exit_data_end): Likewise.
+ (cb_compute_construct_end): Likewise.
+ (cb_enqueue_launch_start): Likewise.
+ (cb_enqueue_launch_end): Likewise.
+ * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
+ (main): Likewise.
+
2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
* libgomp-plugin.h (enum goacc_property): New. Adjust all users
! integer (acc_device_kind), parameter :: acc_device_host_nonshm = 3 removed.
integer (acc_device_kind), parameter :: acc_device_not_host = 4
integer (acc_device_kind), parameter :: acc_device_nvidia = 5
- integer (acc_device_kind), parameter :: acc_device_gcn = 8
+ integer (acc_device_kind), parameter :: acc_device_radeon = 8
end module openacc_kinds
! From openacc_kinds
public :: acc_device_kind
public :: acc_device_none, acc_device_default, acc_device_host
- public :: acc_device_not_host, acc_device_nvidia, acc_device_gcn
+ public :: acc_device_not_host, acc_device_nvidia, acc_device_radeon
public :: acc_on_device
! integer (acc_device_kind), parameter :: acc_device_host_nonshm = 3 removed.
integer (acc_device_kind), parameter :: acc_device_not_host = 4
integer (acc_device_kind), parameter :: acc_device_nvidia = 5
- integer (acc_device_kind), parameter :: acc_device_gcn = 8
+ integer (acc_device_kind), parameter :: acc_device_radeon = 8
integer, parameter :: acc_device_property = c_size_t
! From openacc_kinds
public :: acc_device_kind
public :: acc_device_none, acc_device_default, acc_device_host
- public :: acc_device_not_host, acc_device_nvidia, acc_device_gcn
+ public :: acc_device_not_host, acc_device_nvidia, acc_device_radeon
public :: acc_device_property
public :: acc_property_memory, acc_property_free_memory
/* acc_device_host_nonshm = 3 removed. */
acc_device_not_host = 4,
acc_device_nvidia = 5,
- acc_device_gcn = 8,
+ acc_device_radeon = 8,
_ACC_device_hwm,
/* Ensure enumeration is layout compatible with int. */
_ACC_highest = __INT_MAX__,
! removed.
integer (acc_device_kind), parameter :: acc_device_not_host = 4
integer (acc_device_kind), parameter :: acc_device_nvidia = 5
- integer (acc_device_kind), parameter :: acc_device_gcn = 8
+ integer (acc_device_kind), parameter :: acc_device_radeon = 8
integer, parameter :: acc_handle_kind = 4
return [check_runtime openacc_amdgcn_accel_present {
#include <openacc.h>
int main () {
- return !(acc_get_num_devices (acc_device_gcn) > 0);
+ return !(acc_get_num_devices (acc_device_radeon) > 0);
}
} "" ]
}
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
assert (event_info->launch_event.vector_length >= 1);
else if (acc_device_type == acc_device_nvidia) /* ... is special. */
assert (event_info->launch_event.vector_length == 32);
- else if (acc_device_type == acc_device_gcn) /* ...and so is this. */
+ else if (acc_device_type == acc_device_radeon) /* ...and so is this. */
assert (event_info->launch_event.vector_length == 64);
else
{
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
if (acc_device_type == acc_device_host)
assert (api_info->device_api == acc_device_api_none);
- else if (acc_device_type == acc_device_gcn)
+ else if (acc_device_type == acc_device_radeon)
assert (api_info->device_api == acc_device_api_other);
else
assert (api_info->device_api == acc_device_api_cuda);
#if defined ACC_DEVICE_TYPE_nvidia
d = acc_device_nvidia;
#elif defined ACC_DEVICE_TYPE_gcn
- d = acc_device_gcn;
+ d = acc_device_radeon;
#elif defined ACC_DEVICE_TYPE_host
d = acc_device_host;
#else