get_semaphore

template<ProgrammableCoreType type = ProgrammableCoreType::TENSIX>
uint32_t get_semaphore(uint32_t semaphore_id)

Returns the local address of the semaphore with the given id.

Return value: Local address of the semaphore (uint32_t)

Argument

Description

Type

Valid Range

Required

semaphore_id

Semaphore id

uint32_t

0..2^20-1

True

type (template parameter)

Type of the core

ProgrammableCoreType

Any ProgrammableCoreType

False