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

来源:互联网 发布:php一维数组增加元素 编辑:程序博客网 时间:2024/06/12 10:22

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
0 0