Device Information Routines (GNU libgomp) (original) (raw)
Next: Device Memory Routines, Previous: Resource Relinquishing Routines, Up: OpenMP Runtime Library Routines [Contents][Index]
3.6 Device Information Routines ¶
Routines related to devices available to an OpenMP program. They have C linkage and do not throw exceptions.
- omp_get_num_procs – Number of processors online
- omp_set_default_device – Set the default device for target regions
- omp_get_default_device – Get the default device for target regions
- omp_get_num_devices – Number of target devices
- omp_get_device_num – Return device number of current device
- omp_get_device_from_uid – Obtain the device number to a unique id
- omp_get_uid_from_device – Obtain the unique id of a device
- omp_is_initial_device – Whether executing on the host device
- omp_get_initial_device – Return device number of initial device