mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-12 02:25:12 +08:00
33 lines
948 B
Bash
Executable File
33 lines
948 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export OMP_NUM_THREADS=1
|
|
export MKL_NUM_THREADS=1
|
|
export NUMEXPR_NUM_THREADS=1
|
|
export OPENBLAS_NUM_THREADS=1
|
|
export VECLIB_MAXIMUM_THREADS=1
|
|
|
|
# On AGNOS, prefer the managed venv runtime (has required Python deps like pyzmq).
|
|
if [ -x /usr/local/venv/bin/python3 ]; then
|
|
export PATH="/usr/local/venv/bin:${PATH}"
|
|
fi
|
|
|
|
# models get lower priority than ui
|
|
# - ui is ~5ms
|
|
# - modeld is 20ms
|
|
# - DM is 10ms
|
|
# in order to run ui at 60fps (16.67ms), we need to allow
|
|
# it to preempt the model workloads. we have enough
|
|
# headroom for this until ui is moved to the CPU.
|
|
export QCOM_PRIORITY=12
|
|
|
|
if [ -z "$AGNOS_VERSION" ]; then
|
|
export AGNOS_VERSION="12.8.16"
|
|
fi
|
|
|
|
export STAGING_ROOT="/data/safe_staging"
|
|
|
|
# StarPilot variables (only available after StarPilot is installed to /data/openpilot)
|
|
if [ -x /data/openpilot/starpilot/system/environment_variables ]; then
|
|
eval "$(/data/openpilot/starpilot/system/environment_variables)"
|
|
fi
|