- 执行以下命令解压安装包。
cd /path/to/Darshan
tar xf darshan-3.4.2.tar.gz
cd darshan-3.4.2
- 执行以下命令生成makefile。
./prepare.sh
cd darshan-runtime
./configure --with-log-path=./darshan-logs --enable-group-readable-logs --with-jobid-env=PBS_JOBID --prefix=/path/to/Darshan CC=mpicc
- 执行以下命令编译安装darshan-runtime。
make
make install
- 执行以下命令编译安装darshan-util。
cd ../darshan-util
./configure --enable-shared --prefix=/path/to/Darshan CC=mpicc
make
make install
- 执行以下命令设置环境变量。
export PATH=/path/to/Darshan/bin:$PATH
export LD_LIBRARY_PATH=/path/to/Darshan/lib:$LD_LIBRARY_PATH