{"id":428,"date":"2021-04-19T09:02:27","date_gmt":"2021-04-19T01:02:27","guid":{"rendered":"https:\/\/airy.cn\/WordPress\/?p=428"},"modified":"2023-08-31T10:10:58","modified_gmt":"2023-08-31T02:10:58","slug":"platform-mpi","status":"publish","type":"post","link":"https:\/\/airy.cn\/WordPress\/?p=428","title":{"rendered":"\u5b89\u88c5\u548c\u4f7f\u7528Platform MPI"},"content":{"rendered":"\n<p>&nbsp;<a href=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/hpc_01_0002.html\">\u9ad8\u6027\u80fd\u8ba1\u7b97 HPC<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"section0\">\u64cd\u4f5c\u573a\u666f<\/h4>\n\n\n\n<p id=\"hpc_04_0012__p6642618717191\">\u672c\u8282\u6307\u5bfc\u7528\u6237\u5728BMS\u96c6\u7fa4\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528Platform MPI\u5e94\u7528\uff08\u4ee5\u7248\u672cplatform_mpi- 09.01.04.03r-ce.bin\u4e3a\u4f8b\uff09\u3002<\/p>\n\n\n\n<p id=\"hpc_04_0012__p50369263172023\">\u5bf9\u4e8e\u96c6\u7fa4\u4e2d\u7684\u6bcf\u53f0BMS\uff0c\u90fd\u9700\u8981\u6267\u884c\u8be5\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"section1\">\u524d\u63d0\u6761\u4ef6<\/h4>\n\n\n\n<p id=\"hpc_04_0012__p3920009817191\">\u5df2\u914d\u7f6eBMS\u96c6\u7fa4\u95f4\u4e92\u76f8\u514d\u5bc6\u767b\u5f55\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"section2\">\u64cd\u4f5c\u6b65\u9aa4<\/h4>\n\n\n\n<ol class=\"wp-block-list\" id=\"hpc_04_0012__ol44913552171922\"><li>\u5b89\u88c5Platform MPI<ol type=\"a\"><li>\u4e0b\u8f7dplatformMPI\uff0c\u5982\uff1aplatform_mpi- 09.01.04.03r-ce.bin\u3002<\/li><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5b89\u88c5\u4f9d\u8d56\u5305\u3002<strong># yum install glibc.i686 libgcc-4.8.5-11.el7.i686 libgcc_s.so.1<\/strong><\/li><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u589e\u52a0\u6267\u884c\u6743\u9650\u3002<strong>#chmod +x platform_mpi-09.01.04.03r-ce.bin<\/strong><\/li><li>\u5b89\u88c5Platform MPI\u3002<strong># .\/platform_mpi-09.01.04.03r-ce.bin<\/strong>\u6839\u636e\u7cfb\u7edf\u63d0\u793a\u5b89\u88c5Platform MPI\uff0c\u9ed8\u8ba4\u5b89\u88c5\u5230\u201c\/opt\/ibm\/platform_mpi\u201d\u6587\u4ef6\u5939\u4e0b\u3002<strong>\u56fe1\u00a0<\/strong>Platform MPI\u6210\u529f\u5b89\u88c5<br><img decoding=\"async\" width=\"416.94502500000004\" height=\"112.08309\" src=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/zh-cn_image_0133349151.png\"><\/li><\/ol><\/li><li>\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<ol type=\"a\"><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u83b7\u53d6pkey\u3002<strong># cat \/sys\/class\/infiniband\/mlx5_0\/ports\/1\/pkeys\/* | grep -v 0000\u56fe2\u00a0<\/strong>\u83b7\u53d6pkey<br><img decoding=\"async\" width=\"434.489055\" height=\"33.827087000000006\" src=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/zh-cn_image_0133349198.png\"><\/li><li>\u666e\u901a\u7528\u6237\u4e0b\uff0c\u5728~\/.bashrc\u4e2d\u6dfb\u52a0\uff1a<strong>export MPI_ROOT=\/opt\/ibm\/platform_mpiexport PATH=$MPI_ROOT\/bin:$PATHexport LD_LIBRARY_PATH=\/opt\/ibm\/platform_mpi\/lib\/linux_amd64export MPI_IB_PKEY=<\/strong><em><a href=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/hpc_04_0012.html#hpc_04_0012__li43811143171922\">2.a<\/a>\u4e2d\u83b7\u53d6\u7684pkey<\/em><strong>$source ~\/.bashrc<\/strong><img decoding=\"async\" src=\"https:\/\/res-img3.huaweicloud.com\/content\/dam\/cloudbu-site\/archive\/china\/zh-cn\/support\/resource\/framework\/v3\/images\/support-doc-new-note.svg\">\u8bf4\u660e\uff1a\u5982\u679c\u5b58\u5728\u591a\u4e2apkey\uff0c\u4f7f\u7528\u82f1\u6587\u9017\u53f7\u9694\u5f00\u3002<\/li><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u68c0\u67e5\u73af\u5883\u53d8\u91cf\u662f\u5426\u914d\u7f6e\u6210\u529f\u3002<strong># which mpirun\u56fe3\u00a0<\/strong>\u68c0\u67e5\u73af\u5883\u53d8\u91cf<br><img decoding=\"async\" src=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/zh-cn_image_0133350436.png\"><\/li><\/ol><\/li><li>\u5728\u5355\u4e2aBMS\u4e0a\u8fd0\u884cPlatform MPI\u3002<ol type=\"a\"><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u91cd\u65b0\u7f16\u8bd1hello.c\u6587\u4ef6\u3002<strong>$ mpicc hello.c -o hello<\/strong><\/li><li>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5728\u5355\u4e2aBMS\u4e0a\u8fd0\u884cPlatform MPI\u3002<strong>$ mpirun -np 2 \/home\/rhel\/hello\u56fe4\u00a0<\/strong>\u5728\u5355\u53f0BMS\u4e0a\u8fd0\u884cPlatform MPI<br><img decoding=\"async\" src=\"https:\/\/support.huaweicloud.com\/usermanual-hpc\/zh-cn_image_0133350479.png\"><\/li><\/ol><\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>curl -O http:\/\/ftp.lsdyna-china.com:8088\/lsdyna-china\/LS-DYNA\/MPI_Library\/MPI-platform_mpi\/platform_mpi-09.01.04.03r-ce.bin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u9ad8\u6027\u80fd\u8ba1\u7b97 HPC \u64cd\u4f5c\u573a\u666f \u672c\u8282\u6307\u5bfc\u7528\u6237\u5728BMS\u96c6\u7fa4\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528Platform MPI\u5e94\u7528\uff08\u4ee5 &#8230; <a title=\"\u5b89\u88c5\u548c\u4f7f\u7528Platform MPI\" class=\"read-more\" href=\"https:\/\/airy.cn\/WordPress\/?p=428\" aria-label=\"\u9605\u8bfb \u5b89\u88c5\u548c\u4f7f\u7528Platform MPI\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-ls-dyna"],"_links":{"self":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=428"}],"version-history":[{"count":3,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=\/wp\/v2\/posts\/428\/revisions\/446"}],"wp:attachment":[{"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airy.cn\/WordPress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}