﻿{"id":1935,"date":"2022-08-10T08:29:02","date_gmt":"2022-08-10T08:29:02","guid":{"rendered":"http:\/\/81.70.49.155\/?p=1935"},"modified":"2022-08-15T03:36:25","modified_gmt":"2022-08-15T03:36:25","slug":"%e7%a7%bb%e6%a4%8dcuda-fortran%e5%88%b0linux%e4%b8%8a%e8%ae%a1%e7%ae%97%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9","status":"publish","type":"post","link":"http:\/\/81.70.49.155\/?p=1935","title":{"rendered":"\u79fb\u690dCuda-Fortran\u5230Linux\u4e0a\u8ba1\u7b97\u7684\u6ce8\u610f\u4e8b\u9879"},"content":{"rendered":"<h3>\n\t<span style=\"background-color:#00D5FF;\"><strong>1 <\/strong><\/span><span style=\"background-color:#00D5FF;\"><strong>\u7a0b\u5e8f\u6d89\u53ca\u5230\u8bfb\u5199\u6587\u4ef6\u7684\u8def\u5f84\u95ee\u9898<\/strong><\/span><br \/>\n<\/h3>\n<p class=\"MsoNormal\">\n\t<span><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n\t\u5728<span>Windows<\/span>\u4e0b\u901a\u5e38\u7528<span>Visual Studio<\/span>\u5efa\u7acb\u5de5\u7a0b\u6587\u4ef6\uff0c\u6587\u4ef7\u5939\u7684\u8def\u5f84\u88ab\u94fe\u63a5\u6587\u4ef6\u65b9\u4fbf\u7684\u6784\u5efa\u4e86\u7d22\u5f15\u3002\u4f46\u662f\u5728<span>Linux<\/span>\u4e0b\uff0c\u8981\u6ce8\u610f\u7f16\u8bd1\u7684\u5f53\u524d\u6587\u4ef6\u5939\u4f4d\u7f6e\uff0c\u7f16\u8bd1\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u53ea\u8bc6\u522b\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5939\u6216\u8005\u6587\u4ef6\u3002\u81f3\u4e8e\u8981\u5982\u4f55\u5c06\u8f93\u51fa\u7684\u76ee\u6807\u6587\u4ef6\uff08<span>*.o<\/span>\uff09\u8f93\u51fa\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u5939\uff0c\u8fd9\u4e2a\u95ee\u9898\u8fd8\u6709\u5f85\u89e3\u51b3\uff0c\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u4f3c\u4e4e\u6307\u5b9a\u4e0d\u4e86<span><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n\t<span>&nbsp;<\/span>\n<\/p>\n<h3>\n\t<span style=\"background-color:#00D5FF;\"><strong>2<\/strong><\/span><strong><span style=\"background-color:#00D5FF;\">\u3001\u7a0b\u5e8f\u8bfb\u53d6\u7684\u6587\u4ef6\u683c\u5f0f\u95ee\u9898<\/span><\/strong><br \/>\n<\/h3>\n<p class=\"MsoNormal\">\n\t<span><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n\t\u76f4\u63a5\u4ece<span>windows<\/span>\u62f7\u8d1d\u5230<span>linux<\/span>\u4e2d\u7684\u6570\u636e\u6587\u4ef6\u662f\u8bc6\u522b\u4e0d\u4e86\u7684\u3002\u9700\u8981\u5728\u5f53\u524d\u7684\u6570\u636e\u6587\u4ef6\u5939\u4e0b\u7528<span>dos2unix * <\/span>\u5c06<span>dat<\/span>\u6216<span>txt<\/span>\u6587\u4ef6\u5c31\u5730\u8f6c\u5316\u4e3a<span>linux<\/span>\u53ef\u4ee5\u8bfb\u53d6\u7684\u683c\u5f0f\u3002<span>dos2unix<\/span>\u8fd9\u4e2a\u547d\u4ee4\u8981\u5728\u4e3b\u673a\u8282\u70b9\u540e\u6267\u884c\uff0c\u8fdb\u5165<span>GPU<\/span>\u8282\u70b9\u540e\u6709\u53ef\u80fd\u8fd0\u884c\u4e0d\u4e86\u3002<span><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n\t\n<\/p>\n<h3>\n\t<span style=\"background-color:#00D5FF;\">3\u3001GPU\u8fd0\u884c\u8282\u70b9\u7684\u4f7f\u7528<\/span><br \/>\n<\/h3>\n<p class=\"MsoNormal\">\n\t\u8fd0\u884c\u4ee5\u53ca\u62a2\u5360\u8282\u70b9\u7684\u4f5c\u4e1a\u90fd\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u4e00\u4e0b\uff1a\u547d\u4ee4\u5982\u4e0b<br \/>\n\u67e5\u770b\u4f5c\u4e1a\u60c5\u51b5\uff1asqueue<br \/>\n\u7ed3\u675f\u4f5c\u4e1a\uff1ascancel&nbsp; \u4f5c\u4e1a\u53f7\uff08\u4f5c\u4e1a\u53f7\u6267\u884csqueue\u5373\u53ef\u67e5\u770b\u5230\uff09<br \/>\n\u4e0d\u91c7\u7528\u62a2\u5360\u7684\u65b9\u5f0f\uff0c\u53ef\u91c7\u7528\u811a\u672c\u8fd0\u884c\u7684\u65b9\u5f0f \u4f8b\u5b50\uff1a<br \/>\n\u6d4b\u8bd5\u8def\u5f84\uff1a\/data\/home\/scv1172\/run\/xyqtest2022<br \/>\n\u6d4b\u8bd5\u811a\u672c\uff1asub.sh<br \/>\n\u63d0\u4ea4\u4f5c\u4e1a\uff1asbatch&nbsp; --gpus=\u5361\u6570 sub.sh<br \/>\n\u82e5\u7f16\u8bd1\u9700\u8981\u8c03\u7528\u5230\u663e\u5361\u53ef\u4ee5\u91c7\u7528\u62a2\u5360\u8282\u70b9\u7684\u65b9\u5f0f\u8fdb\u884c\uff0c\u4f46\u662f\u6ce8\u610f\u7ed3\u675f\u4f5c\u4e1a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u7a0b\u5e8f\u6d89\u53ca\u5230\u8bfb\u5199\u6587\u4ef6\u7684\u8def\u5f84\u95ee\u9898 \u5728Windows\u4e0b\u901a\u5e38\u7528Visual Studio\u5efa\u7acb\u5de5\u7a0b\u6587\u4ef6\uff0c\u6587\u4ef7\u5939\u7684\u8def\u5f84 &hellip; <a href=\"http:\/\/81.70.49.155\/?p=1935\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u79fb\u690dCuda-Fortran\u5230Linux\u4e0a\u8ba1\u7b97\u7684\u6ce8\u610f\u4e8b\u9879\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"views":844,"_links":{"self":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/1935"}],"collection":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1935"}],"version-history":[{"count":3,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/1935\/revisions"}],"predecessor-version":[{"id":1938,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/1935\/revisions\/1938"}],"wp:attachment":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1935"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}