Routines that retrieve information about the execution environment with multiple spatial dimensions. They have C linkage and do not throw exceptions.
The dimensional space is unidimensional, if the number of active spaces
is one. To create a multidimensional space, the dim modifier must
be specified with a dimension greater than one in the num_teams,
num_thread_limits, or num_threads clause.
The relation between the unidimensional and the spatial values is as follows: For the size, the unidimensional size is the product of the spatial sizes. For the thread or team number, the unidimensional number is the respective index of dimension 0 plus the index of dimension 1 times the size of dimension 0 plus the index of dimension 2 times the size of dimension 1 times the size of dimension 0 etc. If the active spatial dimensions is one, the spatial dimensional result for dimension zero is the same as returned by the respective unidimensional routine.
Note that there is no means to obtain the number of active dimensions in the general case as the size of an inactive spatial dimension is one, which is also a permitted size for an active spatial dimension.
omp_get_num_threads_dim – Size of a dimension of the active teamomp_get_thread_num_dim – Dimensional ID of the current threadomp_get_num_teams_dim – Number of teams along a dimensionomp_get_team_num_dim – Get team number in a dimensionomp_get_thread_limit_dim – Maximum number of threads in a dimensionomp_get_supported_active_team_dims – Number of supported team dimensionsomp_get_supported_active_league_dims – Number of supported thread dimensionsomp_get_supported_threads_dim – Get upper limit of threads in a dimensionomp_get_supported_teams_dim – Get upper limit of teams in a dimension