CTA-wide semaphore for inter-CTA synchronization.
#include <semaphore.h>
|
| CUTLASS_HOST_DEVICE | Semaphore (int *lock_, int thread_id) |
| | Implements a semaphore to wait for a flag to reach a given value. More...
|
| |
| CUTLASS_DEVICE void | fetch () |
| | Permit fetching the synchronization mechanism early. More...
|
| |
| CUTLASS_DEVICE int | get_state () const |
| | Gets the internal state. More...
|
| |
| CUTLASS_DEVICE void | wait (int status=0) |
| | Waits until the semaphore is equal to the given value. More...
|
| |
| CUTLASS_DEVICE void | release (int status=0) |
| | Updates the lock with the given result. More...
|
| |
| CUTLASS_DEVICE void cutlass::Semaphore::fetch |
( |
| ) |
|
|
inline |
| CUTLASS_DEVICE int cutlass::Semaphore::get_state |
( |
| ) |
const |
|
inline |
| CUTLASS_DEVICE void cutlass::Semaphore::release |
( |
int |
status = 0 | ) |
|
|
inline |
| CUTLASS_DEVICE void cutlass::Semaphore::wait |
( |
int |
status = 0 | ) |
|
|
inline |
| int* cutlass::Semaphore::lock |
| int cutlass::Semaphore::state |
| bool cutlass::Semaphore::wait_thread |
The documentation for this class was generated from the following file: