MIC+CPU节点运行HPL的参考步骤

I ran hpl-2.1 successfully on my system with two coprocessors. I haven’t tried hpl-2.0 yet. Below are the steps I did:

  1. Get the hpl-2.1 source code from http://www.netlib.org/benchmark/hpl/hpl-2.1.tar.gz

  2. Get the make file for MIC sent by Francesca from his thread posted here

  3. Update this make file with your current Intel® compiler and Intel® MPI Library. In my case, I use Intel Composer XE 2013 SP1 Update 2 and MPI 4.1.3.

  4. Set env variables

    # source /opt/intel/composer_xe_2013_sp1.2.144/bin/compilervars.sh intel64

    # source /opt/intel/impi/4.1.3.048/bin64/mpivars.sh

  5. Build the application for MIC. The results are saved in ../hpl-2.1/bin/IntelMIC

  6. Modify the previous make file to build the application for host: change MKL lib and include path for intel64 instead of mic and remove “–mmic” in the make file.

  7. Build the application for host. The results are saved in ../hpl-2.1/bin/IntelHost

  8. Transfer the application for MIC (/bin/xhpl and file /bin/HPL.dat) to the directory /tmp in mic0 and mic1.

    # cd /opt/hpl-2.1-TEST/bin/IntelMIC

    # scp xhpl mic0:/tmp/

    # scp HPL.dat mic0:/tmp/

    # scp xhpl mic1:/tmp/

    # scp HPL.dat mic1:/tmp/

  9. Transfer all the necessary MPI libraries to mic0 and mic1.

    # scp /opt/intel/impi/4.1.3.048/mic/bin/* mic0:/bin/

    # scp /opt/intel/impi/4.1.3.048/mic/lib/* mic0:/lib64/

    # scp /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/* mic0:/lib64/

    # scp /opt/intel/impi/4.1.3.048/mic/bin/* mic1:/bin/

    # scp /opt/intel/impi/4.1.3.048/mic/lib/* mic1:/lib64/

    # scp /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/* mic1:/lib64/

  10. Enable MIC communication and configure MPSS peer-to-peer.

    # export I_MPI_MIC=enable

    # /sbin/sysctl -w net.ipv4.ip_forward=1

  11. Finally, I run the command you want successfully:

    # cd /opt/hpl-2.1-TEST/bin/IntelHost

    # mpirun -genv I_MPI_FABRICS=shm:tcp -n 24 -host localhost ./xhpl HPL.dat : -n 1 -host mic0 -env OMP_NUM_THREADS=244 -wdir /tmp ./xhpl : -n 1 -host mic1 -env OMP_NUM_THREADS=244 -wdir /tmp ./xhpl


https://software.intel.com/en-us/forums/topic/501622
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值