Làm thế nào để thiết lập OpenMPI chạy trong Netbeans
Bài viết này được viết bằng 2 ngôn ngữ là tiếng Anh và tiếng tiếng Việt. Môi trường thiết lập là hệ điều hành CentOS 6.4, phiên bản Netbean 7.3 và phiên bản OpenMPI 1.5.4.
This guide uses both English and Vietnamese. Environment in this guide is CentOS 6.4, Netbean 7.3 and OpenMPI 1.5.4.
Đầu tiên, bạn setup một Build Tool MPI mới như sau:
First, you setup a new Build Tool MPI as:
Select Menu >> Project Properties >> Build, chose MPI in Tool Collection.
[You must be registered and logged in to see this link.]
Trong mục Project Properties, chọn Run và Enviroment.
In Project Properties, select Run and Enviroment.
Name = LD_LIBRARY_PATH
Value = {đường dẫn}/openmpi/lib:$LD_LIBRARY_PATH
Ví dụ như ở máy mình:
Value = /usr/lib/openmpi/lib:$LD_LIBRARY_PATH
Setup variables in Debug Environment:
Name = LD_LIBRARY_PATH
Value = {path to}/openmpi/lib:$LD_LIBRARY_PATH
Example in my computer:
Value = /usr/lib/openmpi/lib:$LD_LIBRARY_PATH
In Run Command of Project Properties, open Debug - Run Command window and modify the value in this as mpiexec -n 4 "${OUTPUT_PATH}", of course the parameter 4 (number processors) can be replace by another value if you want.
And now, you can run and see the result.
Bài viết này được viết bằng 2 ngôn ngữ là tiếng Anh và tiếng tiếng Việt. Môi trường thiết lập là hệ điều hành CentOS 6.4, phiên bản Netbean 7.3 và phiên bản OpenMPI 1.5.4.
This guide uses both English and Vietnamese. Environment in this guide is CentOS 6.4, Netbean 7.3 and OpenMPI 1.5.4.
Đầu tiên, bạn setup một Build Tool MPI mới như sau:
First, you setup a new Build Tool MPI as:
[You must be registered and logged in to see this link.]
Chọn Menu >> Project Properties >> Build, thiết lập MPI cho Tool Collection.Select Menu >> Project Properties >> Build, chose MPI in Tool Collection.
[You must be registered and logged in to see this link.]
Trong mục Project Properties, chọn Run và Enviroment.
In Project Properties, select Run and Enviroment.
[You must be registered and logged in to see this link.]
Thiết lập các giá trị Debug Environment:Name = LD_LIBRARY_PATH
Value = {đường dẫn}/openmpi/lib:$LD_LIBRARY_PATH
Ví dụ như ở máy mình:
Value = /usr/lib/openmpi/lib:$LD_LIBRARY_PATH
Setup variables in Debug Environment:
Name = LD_LIBRARY_PATH
Value = {path to}/openmpi/lib:$LD_LIBRARY_PATH
Example in my computer:
Value = /usr/lib/openmpi/lib:$LD_LIBRARY_PATH
[You must be registered and logged in to see this link.]
Trong mục Run Command của Project Properties, mở cửa sổ Debug - Run Command và hiệu chỉnh lại trị trong đó như sau mpiexec -n 4 "${OUTPUT_PATH}", tất nhiên giá trị 4 (số processor) có thể thay bằng giá trị khác nếu bạn muốn.In Run Command of Project Properties, open Debug - Run Command window and modify the value in this as mpiexec -n 4 "${OUTPUT_PATH}", of course the parameter 4 (number processors) can be replace by another value if you want.
[You must be registered and logged in to see this link.]
Và bây giờ bạn có thể run và đợi xem kết quả.And now, you can run and see the result.
» Giới thiệu sơ lược về NoSQL
» Bio7 IDE dành cho các nhà sinh thái học
» Ứng dụng dành để mở file netCDF
» Đánh giá ngập lụt nước mặt tại Anh quốc
» Tài nguyên về các mô hình tính toán rối từ NASA (Turbulence Modeling Resource)
» Tích hợp công cụ tìm kiếm với hơn 2 triệu đầu sách điện tử
» MATLAB Books Collection (Bô sưu tập sách hơn 900MB cho MATLAB)
» Số liệu các trạm do đạc toàn cầu và từ mô hình WAVEWATCH III
» DHI MIKE 2012 (URBAN + GIS + ZERO)
» File Viewer 1.02 (No InstallQ)
» Coastal Engineering Manual 2003
» Cổng thông tin dữ liệu Hải Dương học (Viện Hải dương học Nha Trang)
» A Generic Algorithm for Waste collection Vehicle routing problem with Time windows and Conflicts
» Mực Nước Đại Dương
» Các thí nghiệm trong cơ chất lỏng của MIT
» Tài liệu dòng chảy
» Dự báo nước dâng do bão sử dụng Delft3D
» Một ví dụ đơn giản về ứng dụng của ANN
» Đưa DEFLT3D vào ArcGIS
» Hướng dẫn sử dụng phần mềm iThink 9.0.2 (Stella)
» Phần mềm Stella
» Du học Đức
» Ứng dụng Litpack
» Xin hỏi tên về 1 loài ốc lạ
» Xin tài liệu về nước dâng do bão
» Lý thuyết triều điều hòa
» The Earth's Atmosphere
» Hướng dẫn cách đưa ảnh từ GoogleEarth vào ArcGIS
» 28 bài giảng về CFD của giáo sư A. Barba tại đại học Boston