一次性GPU代码优化及基准测试计划

来自 Wikiprompt,自由的提示词百科全书

Yun-Ta Tsai

Jun 14, 2026

一次性GPU代码优化及基准测试计划 一个编程提示词,要求模型把CPU代码移植到GPU上,并对照基准图像验证正确性(PSNR > 40dB),同时对吞吐量进行基准测试。

提示词内容

此提示词为英文——适用于所有 AI 模型。

I want you to optimize it entirely on GPU to speed it up. Measure two metrics: the result must compare with the golden image (CPU) and be nearly identical (PSNR > 40dB), with fast pixels per second. Make a plan to a) write GPU equivalent code, b) write a benchmark suite to measure PSNR and pixels p...

登录以查看完整提示词

登录以继续

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| grok| code-optimization