Using MPICH 1 | ||||||||||||||
WINDOWS NT | ||||||||||||||
MSDEV ¢¯¢®¨ù? ??¨¡?????¡¾?(VC++ 6.0, ????©ö????? ¡Æ??¢´?¨¬ ¨ú???¨ú? ???¨ö) ..\MPI\SDK\\include: ?©¬¡Æ¢®???? include¢¯¢® ?©¬¡Æ¢®??¡¾? ..\MPI\SDK\lib : ?©¬¡Æ¢®???? library¢¯¢® ?©¬¡Æ¢®??¡¾? DEBUGmultithread?¡í multithread??¨¬?¡Æ©¡(/MTD->/MT) ws2_32.lib?¡í library¢¯?¨ù?¢¯¢® ?©¬¡Æ¢®, mpich.lib¢¥? release¢¯¢® , mpichd.lib¢¥? debug¢¬©£??¢¯¢® ?©¬¡Æ¢® build ¨ö???¨¡????¡í ??¨ú¡À?©£?¨¬??¢¬?¢¯¢® ¨¬©ö¡í? remote ?©£?¨¬??¢¬?¢¯¢® ¨¬©ö¡í? mpirun -np # executable_file_name |
||||||||||||||
¨ö?????¡Æ©¡ | ||||||||||||||
remote machine¢¯¢® ¡Æ¡Æ?¨¬ ¡¾¢¬?¢Ò?? ??¨ú¡À ?©£?¨¬??¢¬? ¡í?¨ù¨¬ remote machine¢¯¢® ©ø¡í ???¡í???? ??¨ù? ©ø¡í???¡í??¢¯? ¡í?¢¥?©ö©¡ ???¡í??¢¬©£??¢¯¢®¨ù? ?? 1?¢¬¢¬¢¬ mpiregister?¡í ¨ö?????¢¥?. ??¨¬?¨¬¨¢?¨¬ ¨ö???¡Æ? ¨ú¨¡?? ©ö¨¢???? ¡Æ?¡Æ?¢¬? ¡Æ¢®??¡Æ? ??¢¥?. ??¡¾?¡¾??? ?¨ª¨¬¡í ¡Æ?¡Æ???¢¥? ¢¬©£?? ???¡í???? administrator¡í?¢¯???¢¯? passwd?¡í ¡Æ¡Æ?? ¡í?¨ù¨¬??¢¥?. ¡¾¡¿¢¬?¡Æ? mpiregister¢¯¢®¨ù??? ¡Æ¡Æ?¨¬ user¢¯? passwd?¡í ¡í?¢¯???¢¯? ?????¡í ??¢¥?. MPICH>mpd>MPI Configuration Tool?¡í ¨ù¡¾????¡Æ? ¡í?¢¯??? ??¨¬?¢¬? ??????¢¥?. |
||||||||||||||
¢¯©ö?? 1 | ||||||||||||||
???¡×?©£?¨¬??¢¬?¢¯¢®¨ù? cpi ¢¬? ??¨ú¡À?©£?¨¬??¢¬??? ¢¯?¡¾?¢¥?. mpirun -np 2 cpi ¢¬????¡í prompt¡í???¢¯¢®¨ù? ©ø¡í¢¬¡Æ¢¥?. |
||||||||||||||
?¢´?¨¬ pushd \\mpifor?¡í ¢¥??? ©ø¡í???¡í???? ©ø¡¿¨¡?¢¯??? ?©£?¨¬??¢¬??? ???¢¯??¢¥?. mpirun -np 2 cpi?¡í ¨ö?????¢¥?. (?? ¡Æ©¡¢¯? remote???¡í???? ¡Æ¡Æ?¨¬ ©ø¡¿¨¡?¨ú?¡¾¡¿¡í??? ?©£?¨¬??¢¬?¡Æ¢® ¡í?¨ù¨¬??¢¥?. |
||||||||||||||
¢¯©ö?? 2 | ||||||||||||||
¨ù?©ö?¢¯¢®¨ù? ¨ö???¢¬? ©ø¡í¢¬?¢¬? ?? ¨ö???¢¬? ©ö¨?¨¬ slave¢¥? ¢¥??¨ö slave?? ¨ö???¢¬? ¨¬¢¬©ø¨ö¢¥? ¢¬¢Ò??¢¬?¡¾??? ¨ö???¢¬? ©ö¨?¢¬¢¬? ??¢¬? ¢¥?¨ö? ¨ù?¨¬¢¬?? ¨¬¢¬©ø¡í¡Æ? ??¢¥?. ??¢¥? ¡Æ¢®¡í??? ¨ù????¡í ¢¬¢¬??¡Æ? ¡Æ? ©ø???¢¥? ©ø????? ¢¯? ©ø????? ¨¬??? ¨ö???¢¬? ©ö¨¡Æ? ?? ©ø???¢¯¢®¨ù?¢¥? ¨ö???¢¬¢¬?¡ì ?¢®¨ù??¡í ¨ù?????¢¥?. MPI_Send, MPI_Recv ?? ¡Æ¢®??¢¬? ??¢¯??¨ª ????¢¬? ??¡Æ? ©ö¨¢¥?¢¥?. ???©¬ tag¡Æ¢® ¨ù??? ???¢® ???? ¨ú?¢¥?¡Æ©¡¢¯? ????¢¬? ¨ù?¨ù??? ¨ù?¨ú©ª¨ú?¢¥?. tag combination : send_tag=recv_tag?¢´?¨¬ send_tag->MPI_ANY_TAG MPI_ANY_TAG¢¥? status¢¬? ??¢¯??¨ª ?©¬¡Æ¢®???? ?¢´¨¬¢¬?? ¡í?¢¯??? ¨ù? ??¢¥?. ¢¯©ö??¢¥? ¢¯?¡¾?¢¬? ¢¥?¢¬?¢¬? ©ö¨?¡í ¨ù???¢¥?. ??¢¥??¡×?? ¨ù©ø¢¬??¨¬ exam3.htlm¢¯¢® ©ø¨£¢¯? ??¢¥?. |
||||||||||||||
LInux | ||||||||||||||
hello : very first MPI program Using Bcase and Reduce hello_new_comm : In addition to hello, the data communicate with local communicator Using MPI_Comm_group, MPI_Comm_create, MPI_Group_free mat_mat : matrix to matrix Using MPE_Log_event, MPE_Describe_state mat_vec_step01 : matrix to vector multipication monte_pi : calculate PI by monte caro method Using MPI_Comm_group, MPI_comm_create, MPI_Group_free comandrun_step01 : send variable and run on the remote node machine. Simply multiply the vairalbe and return comandrun_step02 : non-blocking version Using MPI_Isend comandrun_step03 : Open remote file, read multify factor and return resul |