mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
Set GPU priorities + improved modeld priorities (#2691)
* give gpu threads rt priority * modeld gets highest prio on core 2 * fix frame stream * lower prio of cal thread Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: c57ee16e86275820f97631fb79df1685e914d564
This commit is contained in:
+8
-3
@@ -21,9 +21,14 @@ else:
|
||||
|
||||
|
||||
class Priority:
|
||||
MIN_REALTIME = 52 # highest android process priority is 51
|
||||
CTRL_LOW = MIN_REALTIME
|
||||
CTRL_HIGH = MIN_REALTIME + 1
|
||||
# CORE 2
|
||||
# - modeld = 55
|
||||
# - camerad = 54
|
||||
CTRL_LOW = 51 # plannerd & radard
|
||||
|
||||
# CORE 3
|
||||
# - boardd = 55
|
||||
CTRL_HIGH = 53
|
||||
|
||||
|
||||
def set_realtime_priority(level):
|
||||
|
||||
Reference in New Issue
Block a user