ããé群ä¸ä½¿ç¨çæ¯openmpiï¼PBSæç¹é®é¢ï¼æ以æä¸ç´ç¨å½ä»¤âmpirun -np 8 vaspâæ交任å¡ãä¸ç¥éå¦ä½ä½¿ç¨å½ä»¤è¿è¡å¤èç¹ç并è¡è®¡ç®ï¼æä¸ä¸ªä»»å¡åé
å°å¤ä¸ªèç¹ä¸ï¼ã
ããå¨
ã并è¡è®¡ç®å¯¼è®ºãä¸æ¥å°å
³äºmpichç使ç¨ï¼
ãã è¿è¡MPICHç¨åº
ããå¤æºç¯å¢ä¸è¿è¡MPICHç¨åºä¸åæºç¯å¢ç±»ä¼¼ï¼å¯ä»¥ç¨mpirunæ¥è¿è¡ãè¿è¡ç¨åºåå
å建ä¸ä¸ªmachinefileæ件ï¼å
¶ä¸ååºè¦ä½¿ç¨çç»ç¹æºåï¼ç¶åç¨å½ä»¤âmpirun -machinefile æ件å ...âæ¥å¨æå®çç»ç¹ä¸è¿è¡ç¨åºãä¾å¦ï¼å设ç¨æ·ç»å½å¨ç»ç¹node2ä¸ï¼æ件mfileä¸å
å«ä¸è¿°å
容ï¼
ããnode3
ããnode4
ããåå½ä»¤ï¼
ããmpirun -machinefile mfile -np 3 cpi
ããå°ç¨node2ï¼node3 ånode4æ¥è¿è¡ç¨åºcpiï¼æ¯ä¸ªç»ç¹ä¸ä¸ªè¿ç¨ï¼è¿æ¯å 为é»è®¤æ
åµä¸mpirunæ»æ¯å°å½åç»ç¹æ·»å å°ç¨åºçç»ç¹æºå表ä¸ãå¦æä¸å¸æ使ç¨å½åç»ç¹(node2)ï¼å¯ä»¥å ä¸-nolocalé项ï¼
ããmpirun -nolocal -machinefile mfile -np 3 cpi
ããé项-npç»åºçè¿ç¨æ°ä¸-machinefileç»åºçæ件ä¸çç»ç¹æºæ°ä¸ä¸å®è¦ç¸çãå¦æè¿ç¨æ°å°äºç»ç¹æºæ°ï¼åç¨åºåªä½¿ç¨å
¶ä¸çä¸é¨åç»ç¹ãå¦æè¿ç¨æ°å¤äºç»ç¹æºæ°ï¼åä¸äºç»ç¹ä¸ä¼è¿è¡å¤äºä¸ä¸ªè¿ç¨ã