CANN/PID批量滚动评分算法
PidFopdtBatchRolloutScore Algorithm【免费下载链接】mat-chem-sim-pred面向工业领域聚焦计算仿真、预测两大核心场景构建面向流程工业机理数据双轮驱动的领域计算层推动AI for Science在材料化学领域的深度应用。项目地址: https://gitcode.com/cann/mat-chem-sim-predPurposeThis operator evaluates many PID candidates for many FOPDT loops during the tuning stage and returns the best candidate for each loop.The target workload is:batch loops x candidate set x rollout time stepsModelThe plant model is discretized FOPDT:y[k1] a * y[k] b * u[k-delay]The PID law is:e[k] sp - y[k] integral e[k] * dt derivative (e[k] - e[k-1]) / dt u[k] clamp(Kp * e[k] Ki * integral Kd * derivative, -10, 10)ScoreFor each candidate, the rollout accumulates:IAEISEovershootsettling_timecontrol_energyThe optimization target is:score IAE overshoot_weight * overshoot settling_weight * settling_time control_weight * control_energyThe operator returns the candidate with minimumscore.NPU Execution StrategyThe current implementation uses a two-stage tiled structure:host splits the candidate axis into tileslocal kernel evaluates one tile for all assigned loops and writes partial best resultsfinal kernel reduces all tile-local best results into one best result per loopThis structure was chosen because the earlier single-launch(loop, tile)task mapping showed unstable coverage onnode202. The current host-per-tile launch plus conservative loop-range partitioning restores correctness.VectorizationThe rollout time dimension is a serial recurrence (y[k1]depends ony[k]) and cannot be turned into GEMM-style dense math without dropping the per-step nonlinearities (control clamp) and the nonlinear score functionals (IAE/ISE/overshoot/settling), so the kernel keeps the exact step-by-step recurrence.The parallelism instead lives on the candidate axis: every timestep applies the same chain of vector ops to all candidates at once. Because the recurrence is serial, that chain of dependent vector ops cannot be pipelined across timesteps, so with a narrow lane the inner loop is bound by per-instruction issue/latency rather than by compute throughput. The kernel therefore evaluates the candidate axis with a wide SIMD lane (kLane768): more candidates per vector instruction means fewer instructions for the same work, which amortises the fixed instruction latency and makes the loop throughput-bound.kLane768is the largest lane that keeps the 8 state vectors scratch the 32-slot delay ring (delay spec0..31) I/O queues within the 192 KB UB budget. Widening the lane is a pure layout change and leaves the output bit-identical.Engineering ConclusionThis operator is valuable as:an independent PID tuning operator samplea correctness-verified NPU exploration artifact (NPU output bit-identical to the CPU reference)a single-card rollout that, after the wide-lane optimization plus the fused inner loop, runs roughly 4-7x the 64-thread CPU baseline at the candidate counts that dominate the tuning sweepThe inner loop was also reduced from ~37 to ~32 vector ops per timestep by reusing the response error as the next steps error and by folding the non-feedback metric accumulators (IAE/ISE/control energy) into fused multiply-accumulates; this is bit-identical to the original. The remaining single-card headroom is a cheaper settling reduction; multi-card data parallelism scales the absolute time further but is a hardware lever, not a single-card algorithmic speedup.【免费下载链接】mat-chem-sim-pred面向工业领域聚焦计算仿真、预测两大核心场景构建面向流程工业机理数据双轮驱动的领域计算层推动AI for Science在材料化学领域的深度应用。项目地址: https://gitcode.com/cann/mat-chem-sim-pred创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关新闻

NCSN项目结构全解析:从配置文件到四大Runner类的使用指南

NCSN项目结构全解析:从配置文件到四大Runner类的使用指南

NCSN项目结构全解析:从配置文件到四大Runner类的使用指南 【免费下载链接】ncsn Noise Conditional Score Networks (NeurIPS 2019, Oral) 项目地址: https://gitcode.com/gh_mirrors/nc/ncsn Noise Conditional Score Networks(NCSN)…

2026/7/4 7:14:59 阅读更多 →
Panel Colorizer与Plasma Manager集成:NixOS环境下的最佳实践

Panel Colorizer与Plasma Manager集成:NixOS环境下的最佳实践

Panel Colorizer与Plasma Manager集成:NixOS环境下的最佳实践 【免费下载链接】plasma-panel-colorizer Latte-Dock and WM status bar customization for the KDE Plasma panels 项目地址: https://gitcode.com/gh_mirrors/pl/plasma-panel-colorizer 想要为…

2026/7/4 7:12:58 阅读更多 →
最新版权清晰 AI音乐写歌工具软件App推荐 商用全场景实测指南

最新版权清晰 AI音乐写歌工具软件App推荐 商用全场景实测指南

很多人挑选AI写歌工具时,最初只关注人声歌曲的生成效果,真正投入使用才发现,日常创作和商业项目里,纯伴奏、氛围音、场景配乐的需求反而更多——助眠冥想需要舒缓白噪音、短视频需要适配剧情的BGM、品牌广告需要定制化配乐、线下门…

2026/7/4 7:12:58 阅读更多 →

最新新闻

5分钟掌握CSS变体管理神器:CVA终极指南

5分钟掌握CSS变体管理神器:CVA终极指南

5分钟掌握CSS变体管理神器:CVA终极指南 【免费下载链接】cva Class Variance Authority 项目地址: https://gitcode.com/gh_mirrors/cv/cva 你是否曾为UI组件的CSS类名管理而头疼?😫 面对不同尺寸、颜色、状态的按钮变体,手…

2026/7/4 8:05:14 阅读更多 →
wiliwili:专为手柄用户打造的跨平台B站客户端完全指南

wiliwili:专为手柄用户打造的跨平台B站客户端完全指南

wiliwili:专为手柄用户打造的跨平台B站客户端完全指南 【免费下载链接】wiliwili 第三方B站客户端,目前可以运行在PC全平台、PSVita、PS4 、Xbox 和 Nintendo Switch上 项目地址: https://gitcode.com/GitHub_Trending/wi/wiliwili 你是否厌倦了在…

2026/7/4 8:05:14 阅读更多 →
豆包与元宝深度对比:AI工具背后的生态能力拆解

豆包与元宝深度对比:AI工具背后的生态能力拆解

1. 这不是“选APP”,而是一场生态级能力的现场拆解你刷到这条内容时,大概率正躺在沙发上,左手握着手机,右手刚点开豆包准备扒拉一段抖音口播文案;或者刚在视频号看完一篇深度长文,顺手把链接甩进元宝&#…

2026/7/4 8:05:14 阅读更多 →
Optimus钩子(Hooks)机制详解:实现数据转换后处理的完整教程

Optimus钩子(Hooks)机制详解:实现数据转换后处理的完整教程

Optimus钩子(Hooks)机制详解:实现数据转换后处理的完整教程 【免费下载链接】optimus Optimus is an easy-to-use, reliable, and performant workflow orchestrator for data transformation, data modeling, pipelines, and data quality m…

2026/7/4 8:01:13 阅读更多 →
CANN/ge LLM集群连接API

CANN/ge LLM集群连接API

# link_clusters 【免费下载链接】ge GE(Graph Engine)是面向昇腾的图编译器和执行器,提供了计算图优化、多流并行、内存复用和模型下沉等技术手段,加速模型执行效率,减少模型内存占用。 GE 提供对 PyTorc…

2026/7/4 8:01:13 阅读更多 →
计算机毕业设计之springboot营养配餐管理系统

计算机毕业设计之springboot营养配餐管理系统

随着当今网络的发展,时代的进步,各行各业也在发生着变化,于是网络已经逐步进入人们的生活,给我们生活或者工作提供了新的方向新的可能。 本毕业设计的内容是设计实现一个基于springboot框架的营养配餐管理系统。它是以java语言&am…

2026/7/4 7:59:12 阅读更多 →

日新闻

Memcached 1.6.43 发布:关键安全修复版本,多项问题得到解决

Memcached 1.6.43 发布:关键安全修复版本,多项问题得到解决

Memcached 1.6.43 正式发布,这是一个关键的安全修复版本,修复了多个方面的问题,还对部分功能进行了优化。 安全修复亮点 此次发布在安全修复上表现突出。binprot 避免了项目引用计数溢出,mcmc 因安全问题提升了上游版本号&#xf…

2026/7/4 0:04:29 阅读更多 →
终极指南:使用HMCL启动器跨平台畅玩Minecraft的完整解决方案

终极指南:使用HMCL启动器跨平台畅玩Minecraft的完整解决方案

终极指南:使用HMCL启动器跨平台畅玩Minecraft的完整解决方案 【免费下载链接】HMCL A Minecraft Launcher which is multi-functional, cross-platform and popular 项目地址: https://gitcode.com/gh_mirrors/hm/HMCL HMCL(Hello Minecraft! Lau…

2026/7/4 0:06:29 阅读更多 →
KMX63与PIC18F66K40在嵌入式HMI中的硬件协同与低功耗设计

KMX63与PIC18F66K40在嵌入式HMI中的硬件协同与低功耗设计

1. KMX63与PIC18F66K40的硬件协同架构解析KMX63作为一款三轴加速度计和磁力计组合传感器,与PIC18F66K40微控制器的搭配堪称嵌入式HMI开发的黄金组合。这套硬件组合的核心优势在于KMX63提供的高精度运动感知能力与PIC18F66K40强大的信号处理能力形成了完美互补。KMX6…

2026/7/4 0:06:29 阅读更多 →

周新闻

月新闻