In short, you can use below cmd to adjust the number of compile threads and memory usage.
apollo/scripts/apollo_build.sh
Line 250 in 9e1edfc
local job_args="--jobs=$(nproc) --local_ram_resources=HOST_RAM*0.7"
For example, 4 thread and 60% memory usage limit
local job_args="--jobs=4 --local_ram_resources=HOST_RAM*0.6"
本文介绍了如何使用Apollo脚本中的参数调整编译过程的线程数和内存限制,例如设置为4个线程和60%的内存使用率。这有助于优化Apollo项目的构建效率和资源管理。
1737

被折叠的 条评论
为什么被折叠?



