Professional Documents
Culture Documents
kèm theo
B1. Em mở hoặc tạo mới Project tùy ý, sau đó lưu file. MPI_helloword.cpp vào Project
Thêm 3 đường dẫn như 3 hình bên dưới (C:\Program Files (x86)\Microsoft SDKs\MPI\Include)
(C:\Program Files (x86)\Microsoft SDKs\MPI\Include\x86)
- Định lại đường dẫn để dich main - tức thêm vào như hình dưới đường dẫn: ) ghi em copy path này
dán vào nghe
Bước 3. Em cài lại path hệ điều hành để chỉ đến file dịch (mpiexec.exe) C:\Program Files\Microsoft MPI\
Bin
Ấn chuột phải vào This PCàPropertiec Tiếp theo vào Advanced system setting
- Vào Enviroment variables..
EM vào như hình dưới để xem đường dẫn lưu file MPI_lau2.exe (C:\Users\PC\Documents\Visual Studio
2013\Projects\MPI_lau2\Debug)
B5 Chạy file MPI_lau2.exe
Vào màn hình CMD để chạy (số 4 chính là số bộ xử lý_ hay số tiến trình)