Rate This Document
Findability
Accuracy
Completeness
Readability

kupl_get_executor_num

Obtain the ID of the KUPL executor that is currently executing the function.

Interface Definition

int kupl_get_executor_num();

Parameters

None

Return Value

ID of the KUPL executor that is currently executing the function.

Examples

1
2
3
4
5
6
7
8
9
#include <stdio.h> 
#include "kupl.h" 

int main()
{
    int num = kupl_get_executor_num();
    printf("current kupl executor id = %d\n", num);
    return 0;
}

The execution result is as follows:

current kupl executor id = 0

The preceding example prints the ID of the current executor. The actual execution result may vary, and the preceding result is for reference only.