{"id":238488,"date":"2022-03-31T09:00:10","date_gmt":"2022-03-31T01:00:10","guid":{"rendered":"https:\/\/gulass.cn\/?p=238488"},"modified":"2022-03-28T11:12:35","modified_gmt":"2022-03-28T03:12:35","slug":"linux-gpu","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-gpu.html","title":{"rendered":"Linux\u7cfb\u7edf\u4e0a\u6700\u5feb\u76843\u4e2aGPU\u52a0\u901f\u7ec8\u7aef\u4eff\u771f\u5668\u4f60\u77e5\u9053\u5417?"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u73b0\u5728\u7ec8\u7aef\u663e\u793a\u6bd4\u51e0\u5e74\u524d\u590d\u6742\u591a\u4e86\uff0c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bf4\u5462?\u6211\u4eec\u5728\u89c2\u770b\u89c6\u9891\u7684\u65f6\u5019\uff0c\u4f1a\u53d1\u73b0\u6709\u5f88\u591a\u5206\u8fa8\u7387\uff0c\u6700\u9ad8\u7684\u5c31\u662f4K\u4e86\uff0c\u56e0\u6b64\u9700\u8981\u6e32\u67d3\u66f4\u9ad8\u7684DPI\u6587\u672c\uff0c\u7ec8\u7aef\u4eff\u771f\u5668\u662fLinux\u4e2d\u6700\u5177\u4e89\u8bae\u7684\u5e94\u7528\u7a0b\u5e8f\u4e4b\u4e00\uff0c\u8fd9\u4e09\u4e2a\u4e0d\u9519\u7684\u4eff\u771f\u5668\u4f60\u4e00\u5b9a\u8981\u4e86\u89e3\uff0c\u8bf7\u770b\u4e0b\u6587\uff1a<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n 1\u3001Alacritty<\/strong><\/div>\n \u662f\u4e00\u4e2a\u4f7f\u7528OpenGL\u7684\u8de8\u5e73\u53f0\u3001GPU\u52a0\u901f\u7684\u7ec8\u7aef\u4eff\u771f\u5668\u3002\u5b83\u662f\u4e00\u6b3e\u4e13\u6ce8\u4e8e\u6027\u80fd\u548c\u7b80\u5355\u6027\u7684\u514d\u8d39\u5f00\u6e90\u8f6f\u4ef6\u3002\u6027\u80fd\u76ee\u6807\u610f\u5473\u7740\u5b83\u5e94\u8be5\u6bd4\u4efb\u4f55\u5176\u4ed6\u53ef\u7528\u7684\u7ec8\u7aef\u4eff\u771f\u5668\u66f4\u5feb\u3002\u7b80\u5355\u7684\u76ee\u6807\u610f\u5473\u7740\u5b83\u6ca1\u6709\u6807\u7b7e\u6216\u7a97\u53e3\u62c6\u5206\u7b49\u529f\u80fd\u3002<\/p>\n \u5176\u7528Rust\u7f16\u5199\uff0c\u53ef\u80fd\u662f\u76ee\u524d\u6700\u5feb\u7684\u7ec8\u7aef\u4eff\u771f\u5668\u3002\u591a\u4e8f\u4e86OpenGL\u6e32\u67d3\u5668\u548c\u9ad8\u541e\u5410\u91cf\u89e3\u6790\u5668\uff0cAlacritty\u662f\u4e00\u4e2a\u975e\u5e38\u5feb\u901f\u4e14\u6781\u5176\u8f7b\u91cf\u7ea7\u7684\u7ec8\u7aef\u4eff\u771f\u5668\u3002<\/p>\n \u4f18\u70b9\uff1a<\/p>\n \u5feb\u901f\u3001\u7b80\u5355\u3001\u8f7b\u4fbf;<\/p>\n \u9664\u4e86\u6807\u51c6\u768416\u79cdANSI\u989c\u8272\u5916\uff0c\u8fd8\u652f\u6301TrueColor;<\/p>\n \u5141\u8bb8\u5728\u56de\u6eda\u7f13\u51b2\u533a\u4e2d\u641c\u7d22\u6587\u672c;<\/p>\n \u5177\u6709\u975e\u5e38\u660e\u667a\u7684\u9ed8\u8ba4\u914d\u7f6e\u9009\u9879\u3002<\/p>\n \u7f3a\u70b9\uff1a<\/p>\n \u4ecd\u7136\u7f3a\u5c11\u4e00\u4e9b\u57fa\u672c\u529f\u80fd\uff0c\u4f8b\u5982\u9009\u9879\u5361\u6216\u62c6\u5206\u3002<\/p>\n \u6ca1\u6709\u94c3\u58f0\u3002<\/p>\n 2\u3001Kitty<\/strong><\/div>\n \u662fLinux\u548cMacOS\u4e0a\u53ef\u7528\u7684GPU\u52a0\u901f\u7ec8\u7aef\u4eff\u771f\u5668\uff0c\u7528Python\u548cC\u7f16\u5199\uff0c\u5b83\u4f7f\u7528\u7ebf\u7a0b\u6e32\u67d3\u6765\u51cf\u5c11\u8f93\u5165\u5ef6\u8fdf\u3002<\/p>\n Kitty\u4e0d\u4f9d\u8d56\u4efb\u4f55\u5927\u578b\u590d\u6742\u7684UI\u5de5\u5177\u5305\uff0c\u53ea\u4f7f\u7528OpenGL\u6765\u6e32\u67d3\u6240\u6709\u5185\u5bb9\u3002\u56e0\u6b64\uff0c\u5e94\u7528\u7a0b\u5e8f\u975e\u5e38\u5feb\uff0c\u5c24\u5176\u662f\u5728\u6253\u5f00\u7684\u9009\u9879\u5361\u4e4b\u95f4\u6eda\u52a8\u6216\u79fb\u52a8\u65f6\u3002\u7ba1\u7406\u62c6\u5206\u7a97\u53e3\u8f7b\u800c\u6613\u4e3e\uff0c\u53ea\u9700\u6309\u51e0\u4e0b\u6309\u952e\u5373\u53ef\u66f4\u6539\u5e03\u5c40\u3002<\/p>\n \u4e0eAlacritty\u76f8\u6bd4\uff0cKitty\u5177\u6709Alacritty\u7684\u6240\u6709\u4f18\u52bf\uff0c\u5e76\u4e14\u4e0d\u7f3a\u4e4f\u4f7f\u5176\u6210\u4e3a\u5f00\u7bb1\u5373\u7528\u7684\u5b8c\u5168\u5de5\u4f5c\u7ec8\u7aef\u7684\u6700\u5c0f\u529f\u80fd\u96c6\u3002\u5b83\u63d0\u4f9bTrueColor\u3001\u8fde\u5b57\u652f\u6301\u3001\u56fe\u5f62\u652f\u6301\u3001\u6807\u7b7e\u3001\u591a\u8def\u590d\u7528\u548c\u5b83\u81ea\u5df1\u7684\u63d2\u4ef6\u6846\u67b6\u3002<\/p>\n \u4f18\u70b9\uff1a<\/p>\n \u9ad8\u6027\u80fd\u3001\u7b80\u5355\u3001\u6240\u6709\u57fa\u4e8e\u952e\u76d8;<\/p>\n \u529f\u80fd\u4e30\u5bcc\u2014\u2014\u5bf9\u8fde\u5b57\u3001\u6807\u7b7e\u3001\u7a97\u53e3\u7684\u652f\u6301\u975e\u5e38\u51fa\u8272;<\/p>\n \u5141\u8bb8\u63d2\u4ef6\u6dfb\u52a0\u529f\u80fd;<\/p>\n \u5141\u8bb8\u5728\u4f60\u9009\u62e9\u7684\u5916\u90e8\u5206\u9875\u4e2d\u67e5\u770b\u56de\u6eda\u7f13\u51b2\u533a;<\/p>\n \u7f3a\u70b9\uff1a<\/p>\n \u5355\u4eba\u79c0 \u2013 \u5f00\u53d1\u8005\u4f3c\u4e4e\u5c06 Kitty \u89c6\u4e3a\u4e2a\u4eba\u9879\u76ee\uff0c\u65e0\u89c6\u7528\u6237\u529f\u80fd\u8bf7\u6c42\u3002<\/p>\n 3\u3001WezTerm<\/strong><\/div>\n \u662f\u4e00\u4e2a\u5f3a\u5927\u7684GPU\u52a0\u901f\u8de8\u5e73\u53f0\u7ec8\u7aef\u4eff\u771f\u5668\u548c\u591a\u8def\u590d\u7528\u5668\uff0c\u7528Rust\u7f16\u5199\u3002WezTerm\u4e2d\u7684\u591a\u8def\u590d\u7528\u57fa\u4e8e\u591a\u8def\u590d\u7528\u57df\u7684\u6982\u5ff5\u2014\u2014\u4e00\u7ec4\u4e0d\u540c\u7684\u7a97\u53e3\u548c\u9009\u9879\u5361\u3002<\/p>\n \u4e0e\u5176\u4ed6GPU\u52a0\u901f\u7ec8\u7aef\u76f8\u6bd4\uff0cWezTerm\u7684\u6700\u5927\u5356\u70b9\u53ef\u80fd\u662f\u5b83\u539f\u751f\u652f\u6301\u6eda\u52a8\u6761\u548c\u9009\u9879\u5361\u3002\u7ec8\u7aef\u4f7f\u7528Lua\u8fdb\u884c\u914d\u7f6e\u548c\u811a\u672c\u7f16\u5199\u3002<\/p>\n WezTerm\u7ec8\u7aef\u7684\u4e00\u4e2a\u6709\u8da3\u7279\u6027\u662f\u5b83\u4f7f\u7528\u5d4c\u5165\u5f0fssh\u5e93\u6765\u63d0\u4f9b\u96c6\u6210\u7684SSH\u5ba2\u6237\u7aef\u3002\u5ba2\u6237\u7aef\u53ef\u7528\u4e8e\u4e0e\u8fdc\u7a0b\u4e3b\u673a\u5efa\u7acb\u4e34\u65f6SSH\u8fde\u63a5\u3002<\/p>\n \u4f18\u70b9\uff1a<\/p>\n \u9ad8\u5ea6\u53ef\u5b9a\u5236;<\/p>\n \u672c\u5730\u548c\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u7684\u591a\u8def\u590d\u7528\u7ec8\u7aef\u7a97\u683c\u3001\u9009\u9879\u5361\u548c\u7a97\u53e3\uff0c\u5177\u6709\u672c\u5730\u9f20\u6807\u548c\u56de\u6eda\u529f\u80fd;<\/p>\n \u901a\u8fc7\u5e26\u6709\u70ed\u91cd\u8f7d\u7684\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e;<\/p>\n \u5e26\u6709\u672c\u673a\u9009\u9879\u5361\u7684 SSH \u5ba2\u6237\u7aef;<\/p>\n \u7f3a\u70b9\uff1a<\/p>\n \u5bf9\u4e8e\u67d0\u4e9b\u7528\u6237\u6765\u8bf4\uff0c\u4f7f\u7528 Lua \u8bed\u6cd5\u5bf9\u5176\u8fdb\u884c\u914d\u7f6e\u53ef\u80fd\u4f1a\u6709\u4e9b\u6df7\u4e71\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u662f\u4e00\u4e2a\u4f7f\u7528OpenGL\u7684\u8de8\u5e73\u53f0\u3001GPU\u52a0\u901f\u7684\u7ec8\u7aef\u4eff\u771f\u5668\u3002\u5b83\u662f\u4e00\u6b3e\u4e13\u6ce8\u4e8e\u6027\u80fd\u548c\u7b80\u5355\u6027\u7684\u514d\u8d39\u5f00\u6e90\u8f6f\u4ef6\u3002\u6027\u80fd\u76ee\u6807\u610f\u5473 […]<\/p>\n","protected":false},"author":1469,"featured_media":238491,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-238488","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/238488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1469"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=238488"}],"version-history":[{"count":5,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/238488\/revisions"}],"predecessor-version":[{"id":239072,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/238488\/revisions\/239072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/238491"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=238488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=238488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=238488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |