docs/classcutlass_1_1Semaphore.html
| | CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers |
Public Member Functions | Public Attributes | List of all members
cutlass::Semaphore Class Reference
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...
|
| |
|
| | int * | lock | | | | bool | wait_thread | | | | int | state | | |
|
| CUTLASS_HOST_DEVICE cutlass::Semaphore::Semaphore | ( | int * | lock_, | | | | int | thread_id | | | ) | | |
| inline |
|
| 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:
Generated by 1.8.11