当前位置: 首页 > news >正文

CANN/cannbot-skills CUDA迁移规则模式

Rule Schema【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skillsgrammar_rules.yamlandconstraint_rules.yamlare the source of truth for syntax-rewrite rules and migration constraint rules.The Markdown files remain human-readable browse views:grammar.mdconstraints.mdUpdate the YAML files first. Keep the Markdown views aligned afterward.grammar_rules.yamlUsegrammar_rules.yamlto record syntax-level rewrite rules for CUDA source code that must be adjusted for Ascend C SIMT.Record Structure- rule_id: assert-header pattern: assert category: debug status: required action: include_header cuda_form: assert(...) ascend_form: #include utils/debug/asc_assert.h note: Add the Ascend SIMT assert header when assert is used. source: - reference/grammar.md reviewed_by: human reviewed_at: 2026-04-06Field Definitionsrule_idRequired.Unique identifier for the rule.Use lowercase letters, digits, and hyphens.patternRequired.The CUDA syntax pattern or construct this rule applies to.categoryRequired.Suggested values:debugmemory-spaceheadersyntaxstatusRequired.One of:required: a fixed rule that must be appliedrewrite-required: syntax must be transformedconditional: only applies in specific situationsunknown: rule not fully confirmed yetactionRequired.One of:include_headersyntax_replacecheck_docsmanual_reviewcuda_formRequired, may be empty.Short representation of the CUDA-side form.ascend_formRequired, may be empty.Short representation of the Ascend-side form.noteRequired, may be empty.Brief explanation of the rule or its scope.sourceRequired.List of references that justify the rule.reviewed_byRequired, may be empty.human,agent, or a more specific reviewer label.reviewed_atRequired, may be empty.ISO date string.Maintenance RulesAdd a new rule when the syntax transformation is reusable across operators.Do not encode one-off operator-specific hacks as global syntax rules.If the rewrite rule is uncertain, keepstatus: unknownorstatus: conditional.Prefer shortcuda_formandascend_formexamples over long code blocks.constraint_rules.yamlUseconstraint_rules.yamlto record unsupported or restricted features in the current migration model.Record Structure- rule_id: cooperative-groups feature: Cooperative Groups category: execution-model status: unsupported action: stop_and_report workaround: note: No workaround in the current migration model. source: - reference/constraints.md reviewed_by: human reviewed_at: 2026-04-06Field Definitionsrule_idRequired.Unique identifier for the constraint rule.Use lowercase letters, digits, and hyphens.featureRequired.Human-readable name of the constrained feature.categoryRequired.Suggested values:graphicsexecution-modelmemory-modelperformance-modelcompilationdata-typebuildstatusRequired.One of:unsupported: the feature has no direct migration support in the current model; useactionto distinguish blocking features from removable unsupported subpathsrestricted: only usable with a workaround or limitationconditional: support depends on context or extra confirmationunknown: not fully investigated yetactionRequired.One of:stop_and_report: the selected migration path cannot continueremove_and_record: remove or exclude the unsupported source subpath, record the exclusion, and continue only if supported behavior remainsmanual_implementationcheck_docsmanual_reviewworkaroundRequired, may be empty.The accepted workaround when one exists.noteRequired, may be empty.Brief explanation of the constraint.sourceRequired.List of references that justify the rule.reviewed_byRequired, may be empty.human,agent, or a more specific reviewer label.reviewed_atRequired, may be empty.ISO date string.Maintenance RulesUseunsupportedonly when the feature itself has no direct migration support in the current migration model.Useaction: stop_and_reportfor blocking unsupported features that prevent the selected migration path from continuing.Useaction: remove_and_recordfor unsupported subpaths that may be removed or excluded while preserving supported source-visible behavior.Userestrictedwhen a workaround exists but carries limits or extra migration work.If the rule still needs confirmation, useconditionalorunknown; do not overstate support.Keep workarounds short in YAML and move long explanations to Markdown if needed.General Update WorkflowWhen a human or agent updates rule references:Update the relevant YAML file first.Keeprule_idstable once introduced.Add or revisesource,note, andreviewed_at.Sync the Markdown browse view if the rule meaning changed.【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
http://www.gsyq.cn/news/1412690.html

相关文章:

  • 从像素到矢量:智能图像矢量化技术如何重塑您的设计工作流
  • AI数字社工平台:用智能技术为基层社工减负增效
  • Linux SPI调试利器spi-tools深度体验:除了spidev_test,你还有这个更现代的选择
  • 告别Navicat试用期烦恼:macOS上的无限试用重置方案
  • B站评论区成分检测器:开源社区的身份识别引擎
  • 前元音/æ/
  • 告别手动拼接!用Tiled Map Editor + Cocos2d-x 4.0快速制作游戏地图(附完整素材包)
  • (干货整理)实测好用的一键生成论文工具,毕业生收藏备用
  • GPT-Neo 1.3B性能基准测试:在7个NLP任务上的表现
  • 2026芜湖市本地人必选的水质检测专业机构TOP7推荐!生活饮用水检测、直饮水检测、污水废水检测、矿泉水检测,正规CMA资质检测公司排名推荐 (2026年5月水质检测最新深度调研方案) - 一修哥咨询
  • 乌鲁木齐黄金回收乱象曝光:福昌夏教你识破陷阱,安全变现 - 黄金上门回收
  • DLSS Swapper:免费游戏性能优化神器,一键管理超采样文件
  • xlm-roberta-longformer-base-16384-openmind核心技术解析:16384 token长文本处理实战
  • 告别阻塞与丢包:在STM32CubeIDE中玩转USART中断与DMA的混合模式
  • 无人机航拍智能电网巡检|电力部件识别数据集|输电线路绝缘子阻尼器电塔目标检测|YOLO深度学习项目
  • Qwen-Image-Lightning终极指南:如何在8步内生成专业级AI图像
  • 北京回收黄金2026平台对比+资深避坑经验分享 - 奢侈品回收测评
  • Unlock-Music:终极音乐解锁指南 - 如何轻松解密20+种加密音乐格式
  • 保姆级教程:手把手教你用Autosar MCAL的ICU模块采集PWM信号(基于GTM-CCU6)
  • caj2pdf:三步解决知网CAJ文献的跨平台阅读难题
  • 告别手动测试!用CPAL脚本的IL函数实现CANoe自动化(附故障注入实战)
  • 2026徐州市本地人必选的水质检测专业机构TOP7推荐!生活饮用水检测、直饮水检测、污水废水检测、矿泉水检测,正规CMA资质检测公司排名推荐 (2026年5月水质检测最新深度调研方案) - 一修哥咨询
  • 从一次真实的应急响应说起:攻击者如何利用rsync未授权访问窃取服务器文件
  • 朱砂难辨真假?高纯度朱砂手串怎么选?一物一码保真才安心 - 博客万
  • 安卓手机本地AI部署实战:从硬件选型到模型量化全指南
  • 3步掌握无损视频剪辑:LosslessCut让你告别渲染等待
  • 新手做公众号怎么选编辑器?哪款编辑器最简单好用?(附保姆级测评) - 行业产品测评专家
  • 3步掌握Real-ESRGAN-GUI:从模糊到高清的AI图像修复实战指南
  • AI搜索工具深度横评:Perplexity、SearchGPT与Claude 3.5 Sonnet实战对比
  • 杭州答谢晚宴策划服务商公司推荐|本地优质企业实力排名 (2026年5月最新) - GEO排行榜