编译和安装
操作步骤
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令,进入安装目录。
cd /path/to/FastTree
- 执行以下命令,编译并行版本。
gcc -DOPENMP -DUSE_DOUBLE -fopenmp -O3 -march=armv8.2-a -mtune=tsv110 -finline-functions -funroll-loops -Wall -o FastTreePar-2.1.11 FastTree.c -lm
- 执行以下命令,将并行线程的最大数量设置为128。
export OMP_NUM_THREADS=128
- 执行以下命令,将路径添加到.bashrc文件。
echo "export PATH=/path/to/FastTree:$PATH" >> /root/.bashrc
source /root/.bashrc