diff --git a/model_examples/StreamPETR/README.md b/model_examples/StreamPETR/README.md index 320daf9450908d2819fdbbe5480d8a68ce3a6449..668c4c422b5cc549bd5b4e9c9bac03a0bb5e45f8 100644 --- a/model_examples/StreamPETR/README.md +++ b/model_examples/StreamPETR/README.md @@ -155,6 +155,24 @@ cd {mxDriving_root_dir}/model_examples/StreamPETR cp -rf test StreamPETR ``` +7. 使用TCMalloc +``` +cd {mxDriving_root_dir}/model_examples/StreamPETR +wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.16/gperftools-2.16.tar.gz +tar -zxvf gperftools-2.16.tar.gz +cd gperftools-2.16 +./configure --prefix=/usr/local/lib --with-tcmalloc-pagesize=64 +make +make install +echo '/usr/local/lib/lib/' >> /etc/ld.so.conf +ldconfig + +# 拉起训练前 +export LD_LIBRARY_PATH=/usr/local/lib/lib/:$LD_LIBRARY_PATH +export PATH=/usr/local/lib/bin:$PATH +export LD_PRELOAD=/usr/lib/libtcmalloc.so.4 +``` + ### 准备数据集