{"id":41379,"date":"2023-09-30T01:52:13","date_gmt":"2023-09-29T17:52:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=41379"},"modified":"2023-09-30T01:52:13","modified_gmt":"2023-09-29T17:52:13","slug":"mhdjkysmbt","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/41379.html","title":{"rendered":"MPI\u548cDP\u63a5\u53e3\u6709\u4ec0\u4e48\u4e0d\u540c"},"content":{"rendered":"

  MPI\u548cDP\u63a5\u53e3\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u5b83\u4eec\u7684\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u5b83\u4eec\u652f\u6301\u7684\u529f\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MPI\u548cDP\u63a5\u53e3\u7684\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u5b83\u4eec\u652f\u6301\u7684\u529f\u80fd\uff0c\u4ee5\u4fbf\u60a8\u80fd\u591f\u66f4\u597d\u5730\u4e86\u89e3\u8fd9\u4e24\u79cd\u63a5\u53e3\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n

MPI\u63a5\u53e3<\/h2>\n

  MPI\u63a5\u53e3(Message Passing Interface)\u662f\u4e00\u79cd\u7528\u4e8e\u5728\u7f51\u7edc\u4e0a\u4f20\u9012\u6d88\u606f\u7684\u63a5\u53e3\uff0c\u5b83\u80fd\u591f\u652f\u6301\u5206\u5e03\u5f0f\u8ba1\u7b97\u4ee5\u53ca\u5e76\u884c\u8ba1\u7b97\u3002\u5b83\u7684\u67b6\u6784\u662f\u4e00\u79cd\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u67b6\u6784\uff0c\u5ba2\u6237\u7aef\u53d1\u9001\u6d88\u606f\uff0c\u670d\u52a1\u5668\u63a5\u6536\u6d88\u606f\uff0c\u5e76\u8fd4\u56de\u54cd\u5e94\u3002MPI\u63a5\u53e3\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u6d88\u606f\u4f20\u9012\u7684\u65b9\u6cd5\u6765\u4f20\u8f93\u6d88\u606f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u7f51\u7edc\u6d41\u91cf\uff0c\u63d0\u9ad8\u7f51\u7edc\u6027\u80fd\u3002<\/p>\n

  \u5b9e\u73b0\u65b9\u5f0f<\/h3>\n

  MPI\u63a5\u53e3\u4f7f\u7528\u4e00\u79cd\u540d\u4e3a\u201c\u6d88\u606f\u4f20\u9012\u201d\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u5b83\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u6d88\u606f\u4f20\u9012\u534f\u8bae(MPP)\u7684\u534f\u8bae\u6765\u4f20\u8f93\u6d88\u606f\u3002MPP\u786e\u4fdd\u6d88\u606f\u5728\u53d1\u9001\u548c\u63a5\u6536\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u4e22\u5931\uff0c\u5e76\u4e14\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u7f51\u7edc\u6d41\u91cf\u3002\u6b64\u5916\uff0cMPI\u63a5\u53e3\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4f8b\u5982C\u3001C++\u3001Fortran\u7b49\uff0c\u4ee5\u4fbf\u7a0b\u5e8f\u5458\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u719f\u6089\u7684\u8bed\u8a00\u6765\u7f16\u5199\u8f6f\u4ef6\u3002<\/p>\n

  \u652f\u6301\u7684\u529f\u80fd<\/h3>\n

  MPI\u63a5\u53e3\u652f\u6301\u4e00\u4e9b\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\uff0c\u4f8b\u5982\u5206\u5e03\u5f0f\u8ba1\u7b97\u3001\u5e76\u884c\u8ba1\u7b97\u3001\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528(RPC)\u7b49\u3002\u6b64\u5916\uff0cMPI\u63a5\u53e3\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f16\u7a0b\u6a21\u578b\uff0c\u4f8b\u5982\u7ba1\u9053\u6a21\u578b\u3001\u7f51\u683c\u6a21\u578b\u3001\u77e9\u9635\u6a21\u578b\u7b49\uff0c\u4ee5\u4fbf\u7a0b\u5e8f\u5458\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u6765\u9009\u62e9\u5408\u9002\u7684\u7f16\u7a0b\u6a21\u578b\u3002<\/p>\n

DP\u63a5\u53e3<\/h2>\n

  DP\u63a5\u53e3(Data Plane Interface)\u662f\u4e00\u79cd\u7528\u4e8e\u5904\u7406\u6570\u636e\u7684\u63a5\u53e3\uff0c\u5b83\u662f\u4e00\u79cd\u9762\u5411\u6570\u636e\u7684\u63a5\u53e3\uff0c\u5b83\u80fd\u591f\u652f\u6301\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u3002<\/p>\n

  \u5b9e\u73b0\u65b9\u5f0f<\/h3>\n

  DP\u63a5\u53e3\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201c\u6570\u636e\u9762\u201d\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u5b83\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u6570\u636e\u9762\u534f\u8bae(DPP)\u7684\u534f\u8bae\u6765\u4f20\u8f93\u6570\u636e\u3002DPP\u786e\u4fdd\u6570\u636e\u5728\u53d1\u9001\u548c\u63a5\u6536\u8fc7\u7a0b\u4e2d\u4e0d\u4f1a\u4e22\u5931\uff0c\u5e76\u4e14\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u7f51\u7edc\u6d41\u91cf\u3002\u6b64\u5916\uff0cDP\u63a5\u53e3\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4f8b\u5982C\u3001C++\u3001Java\u7b49\uff0c\u4ee5\u4fbf\u7a0b\u5e8f\u5458\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u719f\u6089\u7684\u8bed\u8a00\u6765\u7f16\u5199\u8f6f\u4ef6\u3002<\/p>\n

  \u652f\u6301\u7684\u529f\u80fd<\/h3>\n

  DP\u63a5\u53e3\u652f\u6301\u4e00\u4e9b\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\uff0c\u4f8b\u5982\u6570\u636e\u5e93\u64cd\u4f5c\u3001\u6570\u636e\u5904\u7406\u3001\u6570\u636e\u5206\u6790\u7b49\u3002\u6b64\u5916\uff0cDP\u63a5\u53e3\u8fd8\u652f\u6301\u591a\u79cd\u4e0d\u540c\u7684\u7f16\u7a0b\u6a21\u578b\uff0c\u4f8b\u5982\u6d41\u5f0f\u6a21\u578b\u3001\u7d22\u5f15\u6a21\u578b\u3001\u6811\u6a21\u578b\u7b49\uff0c\u4ee5\u4fbf\u7a0b\u5e8f\u5458\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u6765\u9009\u62e9\u5408\u9002\u7684\u7f16\u7a0b\u6a21\u578b\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  MPI\u63a5\u53e3\u548cDP\u63a5\u53e3\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u5b83\u4eec\u7684\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u5b83\u4eec\u652f\u6301\u7684\u529f\u80fd\u3002<\/strong>MPI\u63a5\u53e3\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u6d88\u606f\u4f20\u9012\u7684\u65b9\u6cd5\u6765\u4f20\u8f93\u6d88\u606f\uff0c\u5b83\u652f\u6301\u5206\u5e03\u5f0f\u8ba1\u7b97\u3001\u5e76\u884c\u8ba1\u7b97\u4ee5\u53ca\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\u7b49\u529f\u80fd\u3002\u800cDP\u63a5\u53e3\u5219\u4f7f\u7528\u4e00\u79cd\u53eb\u505a\u6570\u636e\u9762\u7684\u65b9\u6cd5\u6765\u4f20\u8f93\u6570\u636e\uff0c\u5b83\u652f\u6301\u6570\u636e\u5e93\u64cd\u4f5c\u3001\u6570\u636e\u5904\u7406\u548c\u6570\u636e\u5206\u6790\u7b49\u529f\u80fd\u3002\u56e0\u6b64\uff0cMPI\u63a5\u53e3\u548cDP\u63a5\u53e3\u5728\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u652f\u6301\u7684\u529f\u80fd\u4e0a\u6709\u5f88\u5927\u7684\u533a\u522b\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u63a5\u53e3\u6765\u5b9e\u73b0\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

MPI\u548cDP\u63a5\u53e3\u662f\u4e24\u79cd\u4e0d\u540c\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u7684\u4e3b\u8981\u533a\u522b\u5728\u4e8e\u5b83\u4eec\u7684\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u5b83\u4eec\u652f\u6301\u7684\u529f\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8MPI\u548cDP\u63a5\u53e3\u7684\u67b6\u6784\u3001\u5b9e\u73b0\u65b9\u5f0f\u4ee5\u53ca\u5b83\u4eec\u652f\u6301\u7684\u529f\u80fd\uff0c\u4ee5\u4fbf\u60a8\u80fd\u591f\u66f4<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-41379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=41379"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=41379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=41379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=41379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}