25 asm(
"csrr %0, mhartid" :
"=r"(hartid));
35 return SNRT_CLUSTER_NUM;
44 return SNRT_CLUSTER_CORE_NUM;
53 return SNRT_BASE_HARTID;
117 return SNRT_CLUSTER_DM_CORE_NUM;
int snrt_is_dm_core()
Check if the current core is a data mover (DM) core.
Definition team.h:152
uint32_t snrt_cluster_num()
Get the number of Snitch clusters in the system.
Definition team.h:34
uint32_t snrt_global_core_base_hartid()
Get the hartid of the first Snitch core in the system.
Definition team.h:52
uint32_t snrt_global_compute_core_idx()
Get the index of the current Snitch compute core in the system.
Definition team.h:88
uint32_t snrt_global_core_idx()
Get the index (!= hartid) of the current Snitch core in the system.
Definition team.h:79
uint32_t snrt_cluster_dm_core_num()
Get the number of data mover (DM) cores per cluster.
Definition team.h:116
int snrt_is_compute_core()
Check if the current core is a compute core.
Definition team.h:134
uint32_t snrt_global_core_num()
Get the total number of Snitch cores in the system.
Definition team.h:61
uint32_t snrt_hartid()
Get the RISC-V hardware thread ID (hartid).
Definition team.h:23
uint32_t snrt_cluster_core_idx()
Get the index of the current Snitch core within the cluster.
Definition team.h:107
uint32_t snrt_cluster_core_num()
Get the number of cores per cluster.
Definition team.h:43
uint32_t snrt_global_compute_core_num()
Get the total number of Snitch compute cores in the system.
Definition team.h:70
uint32_t snrt_cluster_compute_core_num()
Get the number of compute cores per cluster.
Definition team.h:125
int snrt_cluster_is_last_compute_core()
Check if the current core is the last compute core in the cluster.
Definition team.h:143
uint32_t snrt_cluster_idx()
Get the index of the current Snitch cluster in the system.
Definition team.h:98