{"id":104654,"date":"2026-09-12T22:25:11","date_gmt":"2026-09-12T14:25:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/104654.html"},"modified":"2026-09-12T22:25:11","modified_gmt":"2026-09-12T14:25:11","slug":"%e7%ac%ac4%e6%9d%bf%e5%9d%97%c2%b7%e7%ac%ac2%e8%8a%82%ef%bc%9awarp-%e8%b0%83%e5%ba%a6%e5%99%a8%e4%b8%8e%e6%8c%87%e4%bb%a4%e7%ba%a7%e5%b9%b6%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/104654.html","title":{"rendered":"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c"},"content":{"rendered":"<h3>\u5b66\u4e60\u76ee\u6807<\/h3>\n<p>\u5b66\u5b8c\u672c\u8282\u4f60\u5c06\u80fd\u591f&#xff1a;<\/p>\n<ul>\n<li>\u7406\u89e3 Warp \u8c03\u5ea6\u5668\u5728 SM \u4e2d\u7684\u89d2\u8272\u4e0e\u5de5\u4f5c\u65b9\u5f0f<\/li>\n<li>\u8bc6\u522b\u5e38\u89c1\u7684 Warp \u505c\u6ede\u539f\u56e0&#xff08;\u5185\u5b58\u7b49\u5f85\u3001\u6307\u4ee4\u4f9d\u8d56\u3001\u6267\u884c\u5355\u5143\u5fd9\u7b49&#xff09;<\/li>\n<li>\u638c\u63e1\u901a\u8fc7\u5faa\u73af\u5c55\u5f00\u3001\u591a\u7d2f\u52a0\u5668\u3001\u6307\u4ee4\u91cd\u6392\u63d0\u9ad8\u6307\u4ee4\u7ea7\u5e76\u884c\u5ea6&#xff08;ILP&#xff09;\u7684\u65b9\u6cd5<\/li>\n<li>\u4f7f\u7528 Nsight Compute \u5206\u6790 Warp \u505c\u6ede\u6307\u6807&#xff0c;\u5b9a\u4f4d\u8c03\u5ea6\u74f6\u9888<\/li>\n<\/ul>\n<hr \/>\n<h3>1. Warp \u8c03\u5ea6\u5668\u7684\u5de5\u4f5c\u673a\u5236<\/h3>\n<h4>1.1 \u8c03\u5ea6\u5668\u6570\u91cf\u4e0e\u5206\u5de5<\/h4>\n<p>\u73b0\u4ee3 GPU \u6bcf\u4e2a SM \u5185\u6709\u591a\u4e2a Warp \u8c03\u5ea6\u5668\u3002<\/p>\n<table>\n<tr>\u67b6\u6784\u6bcf\u4e2a SM \u7684\u8c03\u5ea6\u5668\u6570\u91cf\u6bcf\u4e2a\u8c03\u5ea6\u5668\u53ef\u7ba1\u7406\u7684 Warp \u6570\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Kepler<\/td>\n<td>4<\/td>\n<td>16<\/td>\n<td>\u6bcf\u5468\u671f\u53ef\u53d1\u5c04 1 \u6761\u6307\u4ee4<\/td>\n<\/tr>\n<tr>\n<td>Pascal<\/td>\n<td>4<\/td>\n<td>16<\/td>\n<td>\u652f\u6301\u52a8\u6001\u8c03\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>Volta<\/td>\n<td>4<\/td>\n<td>16<\/td>\n<td>\u6539\u8fdb\u7684\u6307\u4ee4\u7f13\u5b58<\/td>\n<\/tr>\n<tr>\n<td>Ampere<\/td>\n<td>4<\/td>\n<td>16<\/td>\n<td>\u652f\u6301\u66f4\u7075\u6d3b\u7684\u8c03\u5ea6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6bcf\u4e2a\u8c03\u5ea6\u5668\u72ec\u7acb\u7ba1\u7406\u4e00\u7ec4 Warp&#xff0c;\u53ef\u4ee5\u5728\u4efb\u610f\u5c31\u7eea Warp \u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<h4>1.2 \u96f6\u5f00\u9500\u5207\u6362<\/h4>\n<p>\u5f53\u4e00\u4e2a Warp \u56e0\u4e3a\u7b49\u5f85\u5185\u5b58\u7b49\u539f\u56e0\u505c\u6ede\u65f6&#xff0c;\u8c03\u5ea6\u5668\u7acb\u5373\u4ece\u5c31\u7eea\u961f\u5217\u4e2d\u9009\u62e9\u53e6\u4e00\u4e2a Warp \u53d1\u5c04\u6307\u4ee4&#xff0c;\u6574\u4e2a\u5207\u6362\u8fc7\u7a0b\u4e0d\u6d88\u8017\u989d\u5916\u65f6\u949f\u5468\u671f\u3002<\/p>\n<p>\u539f\u7406&#xff1a;\u6240\u6709 Warp \u7684\u4e0a\u4e0b\u6587&#xff08;\u5bc4\u5b58\u5668\u72b6\u6001&#xff09;\u5168\u90e8\u4fdd\u5b58\u5728 SM \u7684\u5bc4\u5b58\u5668\u6587\u4ef6\u4e2d&#xff0c;\u4e0d\u9700\u8981\u4fdd\u5b58\/\u6062\u590d\u5230\u5185\u5b58\u3002<\/p>\n<p>\u26a0\ufe0f \u524d\u63d0&#xff1a;\u5fc5\u987b\u6709\u8db3\u591f\u591a\u6d3b\u8dc3 Warp \u53ef\u4f9b\u5207\u6362&#xff1b;\u5982\u679c\u6d3b\u8dc3 Warp \u8fc7\u5c11&#xff0c;\u8c03\u5ea6\u5668\u65e0\u4efb\u52a1\u53ef\u6267\u884c&#xff0c;\u6267\u884c\u5355\u5143\u7a7a\u95f2&#xff0c;\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n<h4>1.3 \u591a\u53d1\u5c04<\/h4>\n<p>\u73b0\u4ee3 GPU \u652f\u6301\u591a\u53d1\u5c04&#xff1a;\u540c\u4e00\u4e2a\u8c03\u5ea6\u5668&#xff0c;\u4e00\u4e2a\u65f6\u949f\u5468\u671f\u53ef\u4ee5\u53d1\u5c04\u591a\u6761\u6307\u4ee4&#xff0c;\u524d\u63d0\u662f\u8fd9\u4e9b\u6307\u4ee4\u4f7f\u7528\u4e0d\u540c\u7684\u6267\u884c\u5355\u5143\u3002<br \/>\n\u4f8b&#xff1a;\u540c\u4e00\u5468\u671f\u53d1\u5c04\u4e00\u6761 FP32 \u6d6e\u70b9\u8fd0\u7b97 &#043; \u4e00\u6761 INT32 \u6574\u6570\u8fd0\u7b97&#xff0c;\u5145\u5206\u5229\u7528\u786c\u4ef6\u8d44\u6e90\u3002<\/p>\n<hr \/>\n<h3>2. \u6307\u4ee4\u6d41\u6c34\u7ebf\u4e0e\u4f9d\u8d56<\/h3>\n<h4>2.1 \u6307\u4ee4\u6d41\u6c34\u7ebf\u9636\u6bb5<\/h4>\n<p>\u4e00\u6761 GPU \u6307\u4ee4\u6267\u884c\u6d41\u7a0b&#xff1a;\u53d6\u6307 \u2192 \u8bd1\u7801 \u2192 \u8bfb\u5bc4\u5b58\u5668 \u2192 \u6267\u884c \u2192 \u5199\u56de\u3002<br \/>\n\u591a\u6761\u6307\u4ee4\u53ef\u4ee5\u5904\u4e8e\u6d41\u6c34\u7ebf\u4e0d\u540c\u9636\u6bb5&#xff0c;\u5b9e\u73b0\u786c\u4ef6\u5e76\u884c\u3002<\/p>\n<p>\u5982\u679c\u540e\u4e00\u6761\u6307\u4ee4\u5fc5\u987b\u7b49\u5f85\u524d\u4e00\u6761\u6307\u4ee4\u7684\u8f93\u51fa\u7ed3\u679c&#xff0c;\u6d41\u6c34\u7ebf\u5c31\u4f1a\u51fa\u73b0\u6c14\u6ce1&#xff08;bubble&#xff09;&#xff0c;\u6d6a\u8d39\u65f6\u949f\u5468\u671f\u3002<\/p>\n<h4>2.2 \u5bc4\u5b58\u5668\u4f9d\u8d56\u7c7b\u578b<\/h4>\n<ul>\n<li>RAW&#xff08;\u8bfb\u540e\u5199&#xff0c;Read\u2011After\u2011Write&#xff09;&#096;&#096;&#096;<br \/>\nR2 &#061; R1 &#043; R3;<br \/>\nR4 &#061; R2 * R5; \/\/ \u4f9d\u8d56 R2 \u7684\u7ed3\u679c&#xff0c;RAW&#xff0c;\u6700\u5e38\u89c1<\/li>\n<\/ul>\n<p>&#8211; **WAR&#xff08;\u5199\u540e\u8bfb&#xff0c;Write\u2011After\u2011Read&#xff09;**&#xff1a;\u540e\u5199\u8986\u76d6\u524d\u9762\u8fd8\u672a\u8bfb\u53d6\u7684\u6e90&#xff1b;GPU \u786c\u4ef6\u5bc4\u5b58\u5668\u91cd\u547d\u540d\u81ea\u52a8\u6d88\u89e3\u3002<br \/>\n&#8211; **WAW&#xff08;\u5199\u540e\u5199&#xff0c;Write\u2011After\u2011Write&#xff09;**&#xff1a;\u4e24\u6761\u6307\u4ee4\u5199\u540c\u4e00\u4e2a\u5bc4\u5b58\u5668&#xff1b;\u786c\u4ef6\u91cd\u547d\u540d\u6d88\u89e3\u3002<\/p>\n<p>&gt;<br \/>\n&gt; RAW \u662f Kernel \u6027\u80fd\u8c03\u4f18\u6700\u9700\u8981\u5173\u6ce8\u7684\u4f9d\u8d56\u3002\u7f16\u8bd1\u5668\u4f1a\u81ea\u52a8\u505a\u6307\u4ee4\u91cd\u6392\u7f13\u89e3&#xff0c;\u4f46\u4e0d\u80fd\u6253\u7834\u771f\u5b9e\u6570\u636e\u4f9d\u8d56\u3002<\/p>\n<p>### 2.3 \u5ef6\u8fdf\u9690\u85cf&#xff1a;TLP vs ILP<\/p>\n<p>GPU \u4e24\u5957\u5ef6\u8fdf\u9690\u85cf\u673a\u5236&#xff1a;<\/p>\n<p>1. **TLP \u7ebf\u7a0b\u7ea7\u5e76\u884c**&#xff1a;\u591a\u4e2a Warp \u6765\u56de\u5207\u6362&#xff0c;\u7528\u5176\u4ed6 Warp \u7684\u6307\u4ee4\u586b\u5145\u6d41\u6c34\u7ebf\u6c14\u6ce1&#xff1b;\u4f9d\u9760\u9ad8\u5360\u7528\u7387\u3002<br \/>\n2. **ILP \u6307\u4ee4\u7ea7\u5e76\u884c**&#xff1a;**\u540c\u4e00\u4e2a\u7ebf\u7a0b\u5185\u90e8**&#xff0c;\u591a\u6761\u4e92\u76f8\u65e0\u4f9d\u8d56\u7684\u6307\u4ee4\u5e76\u884c\u6267\u884c&#xff1b;\u5355\u7ebf\u7a0b\u5185\u90e8\u6316\u6398\u5e76\u884c\u3002<\/p>\n<p>&#8211; \u5185\u5b58\u5bc6\u96c6&#xff1a;\u4f18\u5148\u9760 TLP&#xff1b;<br \/>\n&#8211; \u8ba1\u7b97\u5bc6\u96c6\u3001\u957f\u5faa\u73af&#xff1a;TLP \u4e0d\u8db3\u65f6&#xff0c;\u5fc5\u987b\u9760 ILP \u8fdb\u4e00\u6b65\u538b\u69a8\u6027\u80fd\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## 3. \u5e38\u89c1 Warp \u505c\u6ede\u539f\u56e0<\/p>\n<p>Nsight Compute \u4f1a\u7edf\u8ba1\u5404\u7c7b Warp \u505c\u6ede\u5360\u6bd4\u3002<\/p>\n<p>| \u505c\u6ede\u7c7b\u578b | \u542b\u4e49 | \u5e94\u5bf9\u7b56\u7565 |<br \/>\n| &#8212; | &#8212; | &#8212; |<br \/>\n| &#096;memory_throttle&#096; | \u8bbf\u5b58\u961f\u5217\u5df2\u6ee1&#xff0c;\u7b49\u5f85\u5185\u5b58\u5b50\u7cfb\u7edf | \u4f18\u5316\u5185\u5b58\u8bbf\u95ee&#xff0c;\u4fdd\u8bc1\u5408\u5e76\u8bbf\u95ee&#xff0c;\u51cf\u5c11\u5185\u5b58\u4e8b\u52a1 |<br \/>\n| &#096;execution_dependency&#096; | \u7b49\u5f85\u524d\u9762\u6307\u4ee4\u8f93\u51fa\u7ed3\u679c&#xff08;RAW\u4f9d\u8d56&#xff09; | \u591a\u7d2f\u52a0\u5668\u3001\u5faa\u73af\u5c55\u5f00&#xff0c;\u6253\u788e\u957f\u4f9d\u8d56\u94fe |<br \/>\n| &#096;synchronization&#096; | \u7b49\u5f85&#096;__syncthreads()&#096;\u540c\u6b65\u5c4f\u969c | \u51cf\u5c11\u540c\u6b65\u6b21\u6570&#xff0c;\u4f18\u5316\u5206\u5757\u7c92\u5ea6 |<br \/>\n| &#096;pipe_busy&#096; | \u76ee\u6807\u6267\u884c\u5355\u5143\u5fd9\u788c&#xff08;\u5982SFU&#xff09; | \u51cf\u5c11\u7279\u6b8a\u51fd\u6570\u8c03\u7528&#xff0c;\u4f7f\u7528\u5feb\u901f\u8fd1\u4f3c\u51fd\u6570 |<br \/>\n| &#096;not_selected&#096; | Warp\u5c31\u7eea&#xff0c;\u4f46\u8c03\u5ea6\u5668\u6ca1\u6709\u9009\u4e2d\u6267\u884c | \u63d0\u9ad8\u5360\u7528\u7387&#xff0c;\u589e\u52a0\u6d3b\u8dc3 Warp \u6570\u91cf |<br \/>\n| &#096;wait&#096; | \u56fa\u5b9a\u5ef6\u8fdf\u7b49\u5f85&#xff08;\u5e38\u91cf\u5185\u5b58\u7b49&#xff09; | \u4e00\u822c\u65e0\u9700\u5904\u7406 |<br \/>\n| &#096;other&#096; | \u5176\u4ed6\u6742\u9879\u539f\u56e0 | \u7ed3\u5408\u5b8c\u6574profiling\u62a5\u544a\u5b9a\u4f4d |<\/p>\n<p>&gt;<br \/>\n&gt; \u5224\u8bfb\u6280\u5de7&#xff1a;<br \/>\n&gt;<br \/>\n&gt;<br \/>\n&gt; &#8211; &#096;execution_dependency&#096;\u5360\u6bd4\u9ad8 \u2192 \u74f6\u9888\u662f**\u6307\u4ee4\u4f9d\u8d56\u94fe\u592a\u957f&#xff0c;\u9700\u8981\u63d0\u5347ILP**<br \/>\n&gt; &#8211; &#096;memory_throttle&#096;\u5360\u6bd4\u9ad8 \u2192 **\u5185\u5b58\u8bbf\u95ee\u74f6\u9888**<\/p>\n<p>&#8212;<\/p>\n<p>## 4. \u63d0\u9ad8\u6307\u4ee4\u7ea7\u5e76\u884c\u5ea6\u7684\u65b9\u6cd5<\/p>\n<p>### 4.1 \u5faa\u73af\u5c55\u5f00 &#096;#pragma unroll&#096;<\/p>\n<p>\u5faa\u73af\u5c55\u5f00\u51cf\u5c11\u5faa\u73af\u8ba1\u6570\u5668\u5224\u65ad\u3001\u8df3\u8f6c\u6307\u4ee4&#xff0c;\u540c\u65f6\u7ed9\u7f16\u8bd1\u5668\u66f4\u591a\u8c03\u5ea6\u7a7a\u95f4\u3002<\/p>\n<p>\/\/ \u672a\u5c55\u5f00<br \/>\nfor (int i &#061; 0; i &lt; 8; i&#043;&#043;) {<br \/>\nsum &#043;&#061; in[i];<br \/>\n}<\/p>\n<p>\/\/ \u5b8c\u5168\u5c55\u5f00&#xff0c;\u7f16\u8bd1\u671f\u5e38\u91cf\u5faa\u73af\u6b21\u6570<br \/>\n#pragma unroll<br \/>\nfor (int i &#061; 0; i &lt; 8; i&#043;&#043;) {<br \/>\nsum &#043;&#061; in[i];<br \/>\n}<\/p>\n<p>&#8211; &#096;#pragma unroll N&#096;&#xff1a;\u6307\u5b9a\u5c55\u5f00N\u6b21&#xff1b;<br \/>\n&#8211; \u5faa\u73af\u8fb9\u754c\u4e3a\u8fd0\u884c\u671f\u53d8\u91cf&#xff0c;\u65e0\u6cd5\u5b8c\u5168\u5c55\u5f00\u3002<\/p>\n<p>### 4.2 \u4f7f\u7528\u591a\u4e2a\u7d2f\u52a0\u5668&#xff08;\u91cd\u8981&#xff09;<\/p>\n<p>\u5355\u7d2f\u52a0\u5668\u4f1a\u5f62\u6210\u4e00\u6761\u5f88\u957f\u7684\u6570\u636e\u4f9d\u8d56\u94fe&#xff1b;\u4f7f\u7528\u591a\u7d2f\u52a0\u5668\u628a\u4e00\u6761\u957f\u94fe\u62c6\u6210\u591a\u6761\u77ed\u94fe&#xff0c;\u6781\u5927\u6539\u5584 ILP\u3002<\/p>\n<p>\/\/ \u274c \u5355\u7d2f\u52a0\u5668&#xff0c;\u957f\u4f9d\u8d56\u94fe<br \/>\nfloat sum &#061; 0.0f;<br \/>\nfor (int i &#061; 0; i &lt; N; i&#043;&#043;) {<br \/>\nsum &#043;&#061; in[i];<br \/>\n}<\/p>\n<p>\/\/ \u2705 4\u4e2a\u7d2f\u52a0\u5668&#xff0c;\u62c6\u5206\u62104\u6761\u77ed\u4f9d\u8d56\u94fe<br \/>\nfloat sum0 &#061; 0.0f, sum1 &#061; 0.0f, sum2 &#061; 0.0f, sum3 &#061; 0.0f;<br \/>\nfor (int i &#061; 0; i &lt; N; i &#043;&#061; 4) {<br \/>\nsum0 &#043;&#061; in[i];<br \/>\nsum1 &#043;&#061; in[i&#043;1];<br \/>\nsum2 &#043;&#061; in[i&#043;2];<br \/>\nsum3 &#043;&#061; in[i&#043;3];<br \/>\n}<br \/>\nfloat sum &#061; (sum0 &#043; sum1) &#043; (sum2 &#043; sum3);<\/p>\n<p>&gt;<br \/>\n&gt; \u4ee3\u4ef7&#xff1a;\u6d88\u8017\u66f4\u591a\u5bc4\u5b58\u5668&#xff1b;\u9700\u8981\u6743\u8861\u5bc4\u5b58\u5668\u538b\u529b\u548cILP\u6536\u76ca\u3002<\/p>\n<p>### 4.3 \u6307\u4ee4\u91cd\u6392<\/p>\n<p>\u7f16\u8bd1\u5668\u9ed8\u8ba4\u4f1a\u91cd\u6392&#xff1b;\u5fc5\u8981\u65f6\u624b\u52a8\u8c03\u6574\u4ee3\u7801\u987a\u5e8f&#xff1a;<\/p>\n<p>&#8211; \u5c06**\u4e92\u76f8\u72ec\u7acb**\u7684\u6307\u4ee4\u653e\u9760\u8fd1&#xff1b;<br \/>\n&#8211; \u5c06\u6709\u6570\u636e\u4f9d\u8d56\u7684\u6307\u4ee4\u4e92\u76f8\u9694\u5f00&#xff0c;\u62c9\u5f00\u8ddd\u79bb\u3002<\/p>\n<p>### 4.4 \u51cf\u5c11SFU\u7279\u6b8a\u51fd\u6570\u8c03\u7528<\/p>\n<p>&#096;sinf&#096;\u3001&#096;cosf&#096;\u3001&#096;expf&#096;\u3001&#096;sqrtf&#096;\u5360\u7528SFU\u5355\u5143&#xff0c;\u541e\u5410\u4f4e&#xff0c;\u5bb9\u6613\u89e6\u53d1&#096;pipe_busy&#096;\u505c\u6ede\u3002<br \/>\n\u4f18\u5148\u4f7f\u7528\u786c\u4ef6\u5feb\u901f\u8fd1\u4f3c\u7248\u672c&#xff1a;&#096;__sinf&#096;\u3001&#096;__expf&#096;\u3001&#096;__fsqrt_rn&#096;\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## 5. \u4ee3\u7801\u6f14\u793a&#xff1a;\u5faa\u73af\u5c55\u5f00\u4e0e\u591a\u7d2f\u52a0\u5668\u6027\u80fd\u5bf9\u6bd4<\/p>\n<p>#include<br \/>\n#include &lt;cuda_runtime.h&gt;<\/p>\n<p>#define CUDA_CHECK(call)<br \/>\ndo {<br \/>\ncudaError_t err &#061; call;<br \/>\nif (err !&#061; cudaSuccess) {<br \/>\nfprintf(stderr, \u201cCUDA error at %s:%d: %s\\\\n\u201d, FILE, LINE, cudaGetErrorString(err));<br \/>\nexit(EXIT_FAILURE);<br \/>\n}<br \/>\n} while (0)<\/p>\n<p>\/\/ 1. \u5355\u7d2f\u52a0\u5668&#xff0c;\u65e0\u5c55\u5f00<br \/>\nglobal void reduceSingle(float *in, float *out, int N) {<br \/>\nint idx &#061; blockIdx.x * blockDim.x &#043; threadIdx.x;<br \/>\nfloat sum &#061; 0.0f;<br \/>\nfor (int i &#061; idx; i &lt; N; i &#043;&#061; blockDim.x * gridDim.x) {<br \/>\nsum &#043;&#061; in[i];<br \/>\n}<br \/>\n\/\/ \u7b80\u5316&#xff0c;\u4e0d\u505a\u5b8c\u6574\u5757\u5185\u5f52\u7ea6<br \/>\nif (sum &gt; 0) out[idx] &#061; sum;<br \/>\n}<\/p>\n<p>\/\/ 2. \u56db\u4e2a\u7d2f\u52a0\u5668<br \/>\nglobal void reduceMultiUnroll(float *in, float *out, int N) {<br \/>\nint idx &#061; blockIdx.x * blockDim.x &#043; threadIdx.x;<br \/>\nint stride &#061; blockDim.x * gridDim.x;<br \/>\nfloat sum0 &#061; 0.0f, sum1 &#061; 0.0f, sum2 &#061; 0.0f, sum3 &#061; 0.0f;<\/p>\n<p>int i &#061; idx;<br \/>\nfor (; i &lt; N &#8211; 3; i &#043;&#061; stride * 4) {<br \/>\n    sum0 &#043;&#061; in[i];<br \/>\n    sum1 &#043;&#061; in[i &#043; stride];<br \/>\n    sum2 &#043;&#061; in[i &#043; 2 * stride];<br \/>\n    sum3 &#043;&#061; in[i &#043; 3 * stride];<br \/>\n}<br \/>\n\/\/ \u5904\u7406\u5269\u4f59\u5143\u7d20<br \/>\nfor (; i &lt; N; i &#043;&#061; stride) {<br \/>\n    sum0 &#043;&#061; in[i];<br \/>\n}<br \/>\nfloat sum &#061; sum0 &#043; sum1 &#043; sum2 &#043; sum3;<br \/>\nif (sum &gt; 0) out[idx] &#061; sum;<\/p>\n<p>}<\/p>\n<p>int main() {<br \/>\nconst int N &#061; 1 &lt;&lt; 24;   \/\/ 16M \u5143\u7d20<br \/>\nsize_t bytes &#061; N * sizeof(float);<br \/>\nfloat *d_in, *d_out;<br \/>\nCUDA_CHECK(cudaMalloc(&amp;d_in, bytes));<br \/>\nCUDA_CHECK(cudaMalloc(&amp;d_out, N * sizeof(float)));<\/p>\n<p>\/\/ \u4e3b\u673a\u521d\u59cb\u5316\u7701\u7565<\/p>\n<p>int blockSize &#061; 256;<br \/>\nint gridSize &#061; 256;<\/p>\n<p>cudaEvent_t start, end;<br \/>\nCUDA_CHECK(cudaEventCreate(&amp;start));<br \/>\nCUDA_CHECK(cudaEventCreate(&amp;end));<br \/>\nfloat ms;<\/p>\n<p>CUDA_CHECK(cudaEventRecord(start));<br \/>\nreduceSingle&lt;&lt;&lt;gridSize, blockSize&gt;&gt;&gt;(d_in, d_out, N);<br \/>\nCUDA_CHECK(cudaEventRecord(end));<br \/>\nCUDA_CHECK(cudaEventSynchronize(end));<br \/>\nCUDA_CHECK(cudaEventElapsedTime(&amp;ms, start, end));<br \/>\nprintf(&#034;Single accumulator:       %f ms\\\\n&#034;, ms);<\/p>\n<p>CUDA_CHECK(cudaEventRecord(start));<br \/>\nreduceMultiUnroll&lt;&lt;&lt;gridSize, blockSize&gt;&gt;&gt;(d_in, d_out, N);<br \/>\nCUDA_CHECK(cudaEventRecord(end));<br \/>\nCUDA_CHECK(cudaEventSynchronize(end));<br \/>\nCUDA_CHECK(cudaEventElapsedTime(&amp;ms, start, end));<br \/>\nprintf(&#034;Multi accumulator unroll: %f ms\\\\n&#034;, ms);<\/p>\n<p>CUDA_CHECK(cudaFree(d_in));<br \/>\nCUDA_CHECK(cudaFree(d_out));<br \/>\nreturn 0;<\/p>\n<p>}<\/p>\n<p>&gt;<br \/>\n&gt; \u9884\u671f&#xff1a;\u591a\u7d2f\u52a0\u5668\u7248\u672c\u6027\u80fd\u901a\u5e38\u63d0\u5347 **2~3\u500d**&#xff1b;\u6253\u788e\u957f\u4f9d\u8d56\u94fe&#xff0c;\u63d0\u5347ILP\u3002<\/p>\n<p>\u7f16\u8bd1&#xff1a;<\/p>\n<p>nvcc -arch&#061;sm_80 ilp_demo.cu -o ilp_demo<br \/>\n.\/ilp_demo<\/p>\n<p>&#8212;<\/p>\n<p>## 6. \u4f7f\u7528 Nsight Compute \u5206\u6790 Warp \u505c\u6ede<\/p>\n<p>### 6.1 \u5173\u952emetrics\u6307\u6807<\/p>\n<p>\u6838\u5fc3\u6307\u6807\u524d\u7f00&#xff1a;&#096;smsp__average_warps_issue_stalled_*_per_issue_active.ratio&#096;<\/p>\n<p>\u793a\u4f8b\u547d\u4ee4\u884c\u8c03\u7528&#xff1a;<\/p>\n<p>ncu &#8211;metrics<br \/>\nsmsp__average_warps_issue_stalled_execution_dependency_per_issue_active.ratio,<br \/>\nsmsp__average_warps_issue_stalled_memory_throttle_per_issue_active.ratio,<br \/>\nsmsp__average_warps_issue_stalled_synchronization_per_issue_active.ratio<br \/>\n.\/ilp_demo<\/p>\n<p>\u8f93\u51fa\u6570\u503c\u8303\u56f4 &#096;0~1&#096;&#xff0c;\u4ee3\u8868\u6d3b\u8dc3Warp\u4e2d\u8be5\u539f\u56e0\u505c\u6ede\u7684\u5360\u6bd4\u3002<\/p>\n<p>### 6.2 \u6807\u51c6\u5206\u6790\u6d41\u7a0b<\/p>\n<p>1. &#096;ncu &#8211;set full .\/binary&#096; \u83b7\u53d6\u5b8c\u6574profiling\u62a5\u544a<br \/>\n2. \u627e\u5230\u9762\u677f&#xff1a;&#096;Warp State Statistics&#096;<br \/>\n3. \u5bf9\u6bd4\u5404\u9879\u505c\u6ede\u5360\u6bd4&#xff0c;\u5b9a\u4f4d\u6700\u9ad8\u5360\u6bd4\u9879<br \/>\n4. \u6839\u636e\u505c\u6ede\u7c7b\u578b\u9488\u5bf9\u6027\u4f18\u5316<br \/>\n5. \u91cd\u8dd1ncu\u9a8c\u8bc1\u4f18\u5316\u6548\u679c<\/p>\n<p>&#8212;<\/p>\n<p>## 7. \u8bfe\u540e\u7ec3\u4e60<\/p>\n<p>**\u7ec3\u4e601&#xff1a;\u5faa\u73af\u5c55\u5f00\u5b9e\u9a8c**<br \/>\n\u7f16\u5199\u5411\u91cf\u6c42\u548cKernel&#xff0c;\u5206\u522b&#xff1a;\u4e0d\u5c55\u5f00\u3001&#096;#pragma unroll 4&#096;\u3001\u5b8c\u5168\u5c55\u5f00\u3002\u5bf9\u6bd4\u6027\u80fd&#xff0c;\u4f7f\u7528&#096;&#8211;ptxas-options&#061;-v&#096;\u89c2\u5bdf\u5bc4\u5b58\u5668\u6d88\u8017\u3002<\/p>\n<p>**\u7ec3\u4e602&#xff1a;\u591a\u7d2f\u52a0\u5668\u4f18\u5316**<br \/>\n\u5c06\u793a\u4f8b\u4ee3\u7801\u4fee\u6539\u4e3a2\u30014\u30018\u4e2a\u7d2f\u52a0\u5668&#xff0c;\u6d4b\u8bd5\u6027\u80fd&#xff0c;\u5bfb\u627e\u6700\u4f18\u6570\u76ee&#xff1b;\u4f7f\u7528ncu\u89c2\u5bdf&#096;execution_dependency&#096;\u6307\u6807\u53d8\u5316\u3002<\/p>\n<p>**\u7ec3\u4e603&#xff1a;\u6307\u4ee4\u91cd\u6392\u7ec3\u4e60**<br \/>\n\u7f16\u5199\u5b58\u5728\u8fde\u7eedRAW\u4f9d\u8d56\u7684\u8ba1\u7b97\u7247\u6bb5&#xff0c;\u624b\u52a8\u91cd\u6392\u6307\u4ee4&#xff0c;\u5bf9\u6bd4\u6027\u80fd\u3002<\/p>\n<p>**\u7ec3\u4e604&#xff1a;\u5206\u6790\u4f60\u81ea\u5df1\u7684Kernel**<br \/>\n\u6311\u9009\u4e00\u4efd\u4e4b\u524d\u5199\u8fc7\u7684CUDA Kernel&#xff0c;\u7528ncu\u5206\u6790Warp\u505c\u6ede\u4e3b\u8981\u6765\u6e90&#xff0c;\u505a\u81f3\u5c11\u4e00\u9879\u9488\u5bf9\u6027\u4f18\u5316\u3002<\/p>\n<p>**\u7ec3\u4e605&#xff1a;SFU\u74f6\u9888\u786e\u8ba4**<br \/>\n\u7f16\u5199Kernel\u5927\u91cf\u8c03\u7528&#096;sinf()&#096;\/&#096;cosf()&#096;&#xff0c;ncu\u89c2\u5bdf&#096;pipe_busy&#096;&#xff1b;\u66ff\u6362\u6210&#096;__sinf&#096;\/&#096;__cosf&#096;\u518d\u6b21\u5bf9\u6bd4\u6307\u6807\u4e0e\u8017\u65f6\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## 8. \u4e0b\u4e00\u6b65<\/p>\n<p>\u4e0b\u4e00\u8282\u5c06\u6df1\u5165 **Tensor Core \u786c\u4ef6\u539f\u7406\u4e0e\u7f16\u7a0b\u6a21\u578b**&#xff0c;\u5b66\u4e60&#xff1a;<\/p>\n<p>&#8211; Tensor Core \u7684\u77e9\u9635\u4e58\u52a0\u80fd\u529b\u4e0e\u6570\u636e\u683c\u5f0f<br \/>\n&#8211; \u4f7f\u7528 CUDA WMMA API \u8c03\u7528 Tensor Core<br \/>\n&#8211; Tensor Core \u5728\u6df7\u5408\u7cbe\u5ea6\u8ba1\u7b97\u4e2d\u7684\u5e94\u7528<br \/>\n&#8211; \u5982\u4f55\u5229\u7528 Tensor Core \u52a0\u901f GEMM\u3001\u5377\u79ef\u7b49\u7b97\u5b50<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u6807<br \/>\n\u5b66\u5b8c\u672c\u8282\u4f60\u5c06\u80fd\u591f&#xff1a;<br \/>\n\u7406\u89e3 Warp \u8c03\u5ea6\u5668\u5728 SM \u4e2d\u7684\u89d2\u8272\u4e0e\u5de5\u4f5c\u65b9\u5f0f\u8bc6\u522b\u5e38\u89c1\u7684 Warp \u505c\u6ede\u539f\u56e0&#xff08;\u5185\u5b58\u7b49\u5f85\u3001\u6307\u4ee4\u4f9d\u8d56\u3001\u6267\u884c\u5355\u5143\u5fd9\u7b49&#xff09;\u638c\u63e1\u901a\u8fc7\u5faa\u73af\u5c55\u5f00\u3001\u591a\u7d2f\u52a0\u5668\u3001\u6307\u4ee4\u91cd\u6392\u63d0\u9ad8\u6307\u4ee4\u7ea7\u5e76\u884c\u5ea6&#xff08;ILP&#xff09;\u7684\u65b9\u6cd5\u4f7f\u7528 Nsight Compute \u5206\u6790 Warp \u505c\u6ede\u6307\u6807&#xff0c;\u5b9a\u4f4d\u8c03\u5ea6\u74f6\u98881. Warp \u8c03\u5ea6\u5668\u7684\u5de5\u4f5c\u673a\u5236<br \/>\n1.1 \u8c03\u5ea6\u5668\u6570\u91cf\u4e0e\u5206\u5de5<br \/>\n\u73b0\u4ee3 GPU \u6bcf\u4e2a SM \u5185\u6709\u591a\u4e2a Warp \u8c03<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,208,50],"topic":[],"class_list":["post-104654","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-gpu","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/104654.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5b66\u4e60\u76ee\u6807 \u5b66\u5b8c\u672c\u8282\u4f60\u5c06\u80fd\u591f&#xff1a; \u7406\u89e3 Warp \u8c03\u5ea6\u5668\u5728 SM \u4e2d\u7684\u89d2\u8272\u4e0e\u5de5\u4f5c\u65b9\u5f0f\u8bc6\u522b\u5e38\u89c1\u7684 Warp \u505c\u6ede\u539f\u56e0&#xff08;\u5185\u5b58\u7b49\u5f85\u3001\u6307\u4ee4\u4f9d\u8d56\u3001\u6267\u884c\u5355\u5143\u5fd9\u7b49&#xff09;\u638c\u63e1\u901a\u8fc7\u5faa\u73af\u5c55\u5f00\u3001\u591a\u7d2f\u52a0\u5668\u3001\u6307\u4ee4\u91cd\u6392\u63d0\u9ad8\u6307\u4ee4\u7ea7\u5e76\u884c\u5ea6&#xff08;ILP&#xff09;\u7684\u65b9\u6cd5\u4f7f\u7528 Nsight Compute \u5206\u6790 Warp \u505c\u6ede\u6307\u6807&#xff0c;\u5b9a\u4f4d\u8c03\u5ea6\u74f6\u98881. Warp \u8c03\u5ea6\u5668\u7684\u5de5\u4f5c\u673a\u5236 1.1 \u8c03\u5ea6\u5668\u6570\u91cf\u4e0e\u5206\u5de5 \u73b0\u4ee3 GPU \u6bcf\u4e2a SM \u5185\u6709\u591a\u4e2a Warp \u8c03\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/104654.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-12T14:25:11+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104654.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/104654.html\",\"name\":\"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-12T14:25:11+00:00\",\"dateModified\":\"2026-09-12T14:25:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/104654.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/104654.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104654.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/104654.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5b66\u4e60\u76ee\u6807 \u5b66\u5b8c\u672c\u8282\u4f60\u5c06\u80fd\u591f&#xff1a; \u7406\u89e3 Warp \u8c03\u5ea6\u5668\u5728 SM \u4e2d\u7684\u89d2\u8272\u4e0e\u5de5\u4f5c\u65b9\u5f0f\u8bc6\u522b\u5e38\u89c1\u7684 Warp \u505c\u6ede\u539f\u56e0&#xff08;\u5185\u5b58\u7b49\u5f85\u3001\u6307\u4ee4\u4f9d\u8d56\u3001\u6267\u884c\u5355\u5143\u5fd9\u7b49&#xff09;\u638c\u63e1\u901a\u8fc7\u5faa\u73af\u5c55\u5f00\u3001\u591a\u7d2f\u52a0\u5668\u3001\u6307\u4ee4\u91cd\u6392\u63d0\u9ad8\u6307\u4ee4\u7ea7\u5e76\u884c\u5ea6&#xff08;ILP&#xff09;\u7684\u65b9\u6cd5\u4f7f\u7528 Nsight Compute \u5206\u6790 Warp \u505c\u6ede\u6307\u6807&#xff0c;\u5b9a\u4f4d\u8c03\u5ea6\u74f6\u98881. Warp \u8c03\u5ea6\u5668\u7684\u5de5\u4f5c\u673a\u5236 1.1 \u8c03\u5ea6\u5668\u6570\u91cf\u4e0e\u5206\u5de5 \u73b0\u4ee3 GPU \u6bcf\u4e2a SM \u5185\u6709\u591a\u4e2a Warp \u8c03","og_url":"https:\/\/www.wsisp.com\/helps\/104654.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-12T14:25:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/104654.html","url":"https:\/\/www.wsisp.com\/helps\/104654.html","name":"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-12T14:25:11+00:00","dateModified":"2026-09-12T14:25:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/104654.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/104654.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/104654.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b2c4\u677f\u5757\u00b7\u7b2c2\u8282\uff1aWarp \u8c03\u5ea6\u5668\u4e0e\u6307\u4ee4\u7ea7\u5e76\u884c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/104654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=104654"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/104654\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=104654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=104654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=104654"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=104654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}