Daehan Consulting Group Inc
Transcription
Daehan Consulting Group Inc
Xeon Phi Programming Daehan Consulting Group Inc Daehan Consulting Group Inc. • Xeon Phi Architecture Overview • Xeon Phi Programming Model – Programming Model Overview – Message Passing Interface (MPI) on Intel® Xeon Phi™ coprocessor Daehan Consulting Group Inc. Intel Xeon Phi Coprocessors and the MIC Architecture 3 Daehan Consulting Group Inc. Intel Xeon Phi Coprocessors and the MIC Architecture 4 Daehan Consulting Group Inc. Theoretical Maximum (Intel® Xeon® processor E5-2670 vs. Intel® Xeon Phi™ coprocessor 5110P & SE10P/X) Single Precision Memory Bandwidth Double Precision (GF/s) (GB/s) (GF/s) Up to 3.2x Up to 3.45x Up to 3.2x Higher is Better 1200 2,147 Higher is Better 2,022 1,074 1,011 2000 Higher is Better 350 352 320 1000 300 800 1500 250 200 600 1000 400 666 150 333 100 500 102 200 50 0 E5-2670 (2x 2.6GHz, 8C, 115W) 5110P (60C, 1.053GHz, 225W) SE10P/X (61C, 1.1GHz, 300W) 0 E5-2670 (2x 2.6GHz, 8C, 115W) 5110P (60C, 1.053GHz, 225W) 5 SE10P/X (61C, 1.1GHz, 300W) 0 E5-2670 5110P SE10P/X (2x 2.6GHz, 8C, (60C, 1.053GHz, (61C, 1.1GHz, 115W) 225W) 300W) Daehan Consulting Group Inc. Interacting with Intel Xeon Phi coprocessors 6 Daehan Consulting Group Inc. micsmc: Real-TimeMonitoring Tool 7 Daehan Consulting Group Inc. • Xeon Phi Architecture Overview • Xeon Phi Programming Model – Programming Model Overview – Message Passing Interface (MPI) on Intel® Xeon Phi™ coprocessor Daehan Consulting Group Inc. 9 Daehan Consulting Group Inc. A Process Viewpoint of the Intel® MIC Architecture Enabled Compute Continuum 10 Daehan Consulting Group Inc. • Xeon Phi Architecture Overview • Xeon Phi Programming Model – Programming Model Overview – Message Passing Interface (MPI) on Intel® Xeon Phi™ coprocessor Daehan Consulting Group Inc. Intel® MIC Architecture Native Compilation Communication 12 Daehan Consulting Group Inc. Coprocessor only Programming Model 13 Daehan Consulting Group Inc. Coprocessor only Programming Model 14 Daehan Consulting Group Inc. MPI+Offload Programming Model 15 Daehan Consulting Group Inc. MPI+Offload Programming Model 16 Daehan Consulting Group Inc. Symmetric Programming Model 17 Daehan Consulting Group Inc. Symmetric Programming Model 18 Daehan Consulting Group Inc. Cluster example Sample machinefile: snode1:16 snode1-mic0:60 snode1-mic1:60 snode2:16 snode2-mic0:60 snode2-mic1:60 19 Daehan Consulting Group Inc. INTEL MPI example # sudo scp /opt/intel/impi/4.1.1.036/mic/bin/* mic0:/bin/ mpiexec 100% 1061KB 1.0MB/s 00:00 pmi_proxy 100% 871KB 871.4KB/s 00:00 ... # sudo scp /opt/intel/impi/4.1.1.036/mic/lib/* mic0:/lib64/ libmpi.so.4.1 100% 4391KB 4.3MB/s 00:00 libmpigf.so.4.1 100% 321KB 320.8KB/s 00:00 libmpigc4.so.4.1 100% 175KB 175.2KB/s 00:00 ... # sudo scp /opt/intel/composer_xe_2013.4.183/compiler/lib/mic/* mic0:/lib64/ libimf.so 100% 2516KB 2.5MB/s 00:01 libsvml.so 100% 4985KB 4.9MB/s 00:01 libintlc.so.5 100% 128KB 128.1KB/s 00:00 ... 20 Daehan Consulting Group Inc. INTEL MPI example Before compiling , establish the proper environment settings for the compiler and for the Intel MPI Library for Intel® Xeon Phi™ Coprocessor # source /opt/intel/composer_xe_2013.4.183/bin/compilervars.sh intel64 # source /opt/intel/impi/4.1.1.036/ bin64/mpivars.sh Build the application montecarlo.mic for the coprocessor: # mpiicc –mmic montecarlo.c -o montecarlo.mic Build the application for the host: # mpiicc montecarlo.c -o montecarlo.host Upload the application montecarlo.mic to the /tmp directory on the coprocessors using the scp command. # sudo scp ./montecarlo.mic mic0:/tmp/montecarlo.mic Enable the MPI communication between host and coprocessors: # export I_MPI_MIC=enable 21 Daehan Consulting Group Inc. Thank You. Daehan Consulting Group Inc. Q&A Daehan Consulting Group Inc.