基于Intel的并行計算MPI環(huán)境搭建_第1頁
基于Intel的并行計算MPI環(huán)境搭建_第2頁
基于Intel的并行計算MPI環(huán)境搭建_第3頁
基于Intel的并行計算MPI環(huán)境搭建_第4頁
基于Intel的并行計算MPI環(huán)境搭建_第5頁
已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、MPI MPI FORTRAN+MPI C+MPI MPI FORTRAN77/C/Fortran90/C+ MPI IBM PC MS Windows Unix MPI Fortran IBM PC MS Windows UnixCentOS 6.4 sshd selinux Intel_ Fortran Intel_C+ Intel_ MPIIP IP /etc/hosts IP /etc/hosts1.10.12.190.183 dell2.10.12.190.187 lenovo3.A 110.12.190.183 10.12.190.187 rsa|dsa rsa1.#ssh-key

2、gen -t rsa # rsa rsa1.Generating public/private rsa key pair.2.Enter file in which to save the key (/root/.ssh/id_rsa:3.Enter passphrase (empty for no passphrase:4.Enter same passphrase again:5.Your identification has been saved in /root/.ssh/id_rsa.6.Your public key has been saved in /root/.ssh/id_

3、rsa.pub.7.The key fingerprint is:8.b3:8e:87:44:71:67:81:06:d2:51:01:a4:f8:74:78:fd rootkvm.local9.The key's randomart image is:10.+- RSA 2048-+11.| .o=oo. |12.| . +o.+ o |13.| . + o+.o |14.| o o. . |15.| . S E |16.| . o |17.| . . |18.| .o. |19.| . |20.+-+id_rsa,id_rsa.pub/.ssh/ id_rsa.pub .ssh c

4、at id_rsa.pub >> /.ssh/authorized_keys /.ssh/ id_rsa.pub authorized_keys1.#chmod 600 authorized_keys.ssh1.#chmod 700 -R .sshssh-copy-id authorized_keys ssh-copy-id home /.ssh, /.ssh/authorized_keys1.#ssh-copy-id i /.ssh/id_rsa.pub 10.12.190.187chmod 777.ssh-keygen .ssh id_rsa authorized_keys y

5、es1.ssh node12.ssh node23.ssh node34.ssh node4NFSNFS IP 10.12.190.183 root1. /etc/exports/etc/exports1./home/cluster 10.12.190.183(rw,sync,no_root_squash2./home/cluster 10.12.190.185(rw,sync,no_root_squash3./home/cluster 10.12.190.187(rw,sync,no_root_squashNFS IP 10.12.190.183 10.12.190.18510.12.190

6、.185 /home/cluster1.# /etc/rc.d/init.d/rpcbind start NFSrpcbind NFS service portmapstartNFS NFS Client1.# /etc/rc.d/init.d/nfs start2.# chkconfig nfs onLinux NFS1.mkdir /usr/cluster1.showmount -e 10.12.190.183IP 10.12.190.1831.mount -t nfs 10.12.190.183:/home/cluster /home/clusterNFS 10.12.190.183 /

7、home/cluster /etc/fstab NFS1.10.12.190.183:/home/cluster /home/cluster nfs defaults 0 0NFS /home/cluster NFS NFS Intel_C+1.#tar xvzf l_ccompxe_2013.1.117.tgz2.# cd composer_xe_2013.1.1173.#./install.sh1.#vi /etc/profilesource /opt/intel/composer_xe_2013.1.117/bin/iccvars.sh intel641.#which icc/opt/i

8、ntel/composer_xe_2013.1.117/bin/intel64/iccIntel_Fortran1.#tar fxvz l_fcompxe_2013.1.117.tgz2.# cd l_fcompxe_2013.1.1173.#./install.sh1.#vi /etc/profilesource /opt/intel/composer_xe_2013.1.117/bin/compilervars.shintel641.#which ifort/opt/intel/composer_xe_2013.1.117/bin/intel64/ifortIntel_MPIFortran

9、 c+ MPI MPI mpich1.#tar fxvz l_mpi_p_4.1.3.045.tgz2.#cd l_mpi_p_4.1.3.0453.#./install.sh1.#vi /etc/profilesource /opt/intel/impi/4.1.3.045/bin64/mpivars.sh1.#which mpd2.#which mpicc3.#which mpiexec4.#which mpirun/etc/mpd.conf 1. vi /etc/mpd.conf secretword=myword MPD_SECRETWORD=myword 1. chmod 600 /

10、etc/mpd.conf root .mpd.conf /root/mpd.hosts 1. #vi mpd.hosts 1. 2. dell lenovo # # 1 2 : dell:2 MPI 1. 2. 3. 4. 5. 6. 7. 8. 9. MPI # scp /opt/intel/impi/4.1.3.045/mic/bin/* dell:/bin/ mpiexec pmi_proxy #scp /opt/intel/impi/4.1.3.045/mic/lib/* dell:/lib64/ libmpi.so.4.1 libmpigf.so.4.1 libmpigc4.so.4

11、.1 100% 100% 100% 4391KB 321KB 175KB 4.3MB/s 320.8KB/s 175.2KB/s 00:00 00:00 00:00 100% 100% 1061KB 871KB 1.0MB/s 871.4KB/s 00:00 00:00 10. # scp /opt/intel/composer_xe_2013_sp1.0.080/compiler/lib/mic/* dell: /lib64/ 11. libimf.so 12. libsvml.so 13. libintlc.so.5 14. 100% 100% 2516KB 4985KB 128KB 2.

12、5MB/s 4.9MB/s 00:01 00:01 00:00 100% 128.1KB/s intel el-xeon-phi-coprocessor-systems /opt nfs Intel_ Fortran Intel_C+ Intel_ MPI MPI MPI MPI MPI mpd mpd 1. # mpd & mpiexec mpirun mpi mpd 1. 2. # mpdtrace # mpdtrace -l mpd 1. #mpdallexit mpi 1. 2. 3. 4. mpi (-o Hello / Hello a.out -np / #mpicc -o

13、 Hello Hello.c #mpicc cpi.c #mpdrun -np 4 ./a.out / /-n #mpiexec -h or -help or -help mpd 1. # mpdboot -n process-num -f mpd.hosts process-num mpi mpd -rsh 1. 2. mpd.hosts rsh ssh ssh rsh #mpdboot -rsh=rsh -n process-num -f hostfile #mpdboot -rsh=ssh -n process-num -f hostfile mpd 1. #mpdallexit MPIEXEC|MPIRUN 1. 2. mpi /a.out a.out #mpiexec -np 4 ./a.out mpiexec -machinefile filename -np 4 ./a.out 1. 2. 3. 4. 5. 6. 7. rootkvm # mpiexec -np 4 ./a.out Pr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論