2022-08-29 16:24:29 +02:00
|
|
|
# nOS-V model
|
|
|
|
|
2022-08-31 11:31:55 +02:00
|
|
|
The nOS-V runtime is composed of tasks that can be scheduled to run in
|
|
|
|
threads. Tasks can be paused and resumed, leaving the CPUs free to
|
|
|
|
execute other tasks. The nOS-V model tracks the state of each task as
|
|
|
|
well as the state of the runtime internal state.
|
2022-06-21 12:15:38 +02:00
|
|
|
|
2022-08-31 11:31:55 +02:00
|
|
|
## Task type colors
|
|
|
|
|
|
|
|
In the Paraver timeline, the color assigned to each nOS-V task type is
|
|
|
|
computed from the task type label using a hash function; the task type
|
|
|
|
id doesn't affect in any way how the color gets assigned. This method
|
|
|
|
provides two desirable properties:
|
2022-06-21 12:15:38 +02:00
|
|
|
|
|
|
|
- Invariant type colors over time: the order in which task types are
|
|
|
|
created doesn't affect their color.
|
|
|
|
|
|
|
|
- Deterministic colors among threads: task types with the same label end
|
|
|
|
up mapped to the same color, even if they are from different threads
|
|
|
|
located in different nodes.
|
|
|
|
|
|
|
|
For more details, see [this MR][1].
|
|
|
|
|
|
|
|
[1]: https://pm.bsc.es/gitlab/rarias/ovni/-/merge_requests/27
|