Document deterministic colors of nOS-V task types
This commit is contained in:
parent
553cb45700
commit
8c5ff38734
17
doc/nosv_type_labels.md
Normal file
17
doc/nosv_type_labels.md
Normal file
@ -0,0 +1,17 @@
|
||||
# nOS-V task type colors
|
||||
|
||||
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:
|
||||
|
||||
- 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
|
Loading…
Reference in New Issue
Block a user