cd /path/to/ABINIT/abinit-8.10.3/tests/tutorial/Input mkdir Work_paral
cd Work_paral
cp ../tbasepar_1.files . cp ../tbasepar_1.in .
abinit < tbasepar_1.files > log 2> err
mkdir tmp
vi tbase1_x.files
tbasepar_1.in tbasepar_1.out tbasepar_1i tbasepar_1o ./tmp/tbasepar_1 ../../../Psps_for_tests/HGH/82pb.4.hgh
mpirun --allow-run-as-root -np 32 ../../../../build/src/98_main/abinit < tbasepar_1.files >&tbasepar_1.log &
vi hostfile
Node1 Node2
Node1和Node2为主机名,请依照实际情况修改,并保证节点相互可以Ping通。
mpirun --allow-run-as-root -x PATH=$PATH -x LD_LIBRARY_PATH=$LD_LIBRARY_PATH --hostfile hostfile -np 32 -N 16../../../../build/src/98 main/abinit < tbasepar_1.files >&tbasepar_1.log &
参数 |
说明 |
---|---|
-np |
测试使用的总进程数。 |
-N |
每个服务器上运行的进程数。 |
--hostfile |
使用的节点名字。 |
vi tbasepar_1.log
输出结果如下图所示。