Rate This Document
Findability
Accuracy
Completeness
Readability

HTL_thread_executor_self_by_rank

Obtains the rank of the executor associated with the caller.

Interface Definition

int HTL_thread_executor_self_by_rank(int *rank);

Description

HTL_thread_executor_self_by_rank() returns the rank of the executor that runs the calling worker through rank.

Parameters

Parameter

Type

Description

Input/Output

rank

int *

Executor rank.

Output

Return Value

  • HTL_THREAD_SUCCESS: success.
  • Other values: failure. For details, see the error code descriptions.

Example

    int rank;
    HTL_thread_executor_self_by_rank(&rank);