Runtime  Version 1.0
PULP Kernel Library
 All Files Functions Typedefs Groups Pages

Functions

int __builtin_pulp_CoreCount ()
 Returns number of cores in the cluster. More...
 
int __builtin_pulp_CoreId ()
 Returns the core number on which a program is currently executing. More...
 
int __builtin_pulp_ClusterId ()
 Returns the cluster number on which a program is currently execution. More...
 
int __builtin_pulp_IsFc ()
 Returns 1 is program currently runs on the fabric controller, 0 otherwise. More...
 

Description

Function Documentation

int __builtin_pulp_ClusterId ( )

Returns the cluster number on which a program is currently execution.

For Cluster returns 0 and for fabric controller returns 31.

Available macros:

    gap8_clusterid()
    __CLUSTERID()

Referenced by __CLUSTERID(), and gap8_clusterid().

int __builtin_pulp_CoreCount ( )

Returns number of cores in the cluster.

Default is 8 but can be overidden by the gcc option -mPE=

Available macros:

    gap8_ncore()
    __NCORE()

Referenced by __NCORE(), and gap8_ncore().

int __builtin_pulp_CoreId ( )

Returns the core number on which a program is currently executing.

On Cluster: 0 to 7, on fabric controller: 0.

Available macros:

    gap8_coreid()
    __COREID()

Referenced by __COREID(), and gap8_coreid().

int __builtin_pulp_IsFc ( )

Returns 1 is program currently runs on the fabric controller, 0 otherwise.

Available macros:

    gap8_isfc()
    __ISFC()

Referenced by __ISFC(), and gap8_isfc().