omp_get_device_from_uid
– Obtain the device number to a unique id ¶This function returns the device number associated with the passed
unique-identifier (UID) string. If no device with this UID is available, the value
omp_invalid_device
is returned. The effect of running this routine in a
target
region is unspecified.
GCC treats the UID string case sensitive; for the initial device, GCC currently
only accepts the value OMP_INITIAL_DEVICE
and returns for it the value
of omp_initial_device
.
Prototype: | int omp_get_device_from_uid(const char *uid); |
Interface: | integer function omp_get_device_from_uid(uid) |
character(len=*), intent(in) :: uid |
omp_get_uid_from_device
– Obtain the unique id of a device, Offload-Target Specifics
OpenMP specification v6.0, Section 24.7