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

CANN PTO Tile-Scalar汇编操作

Tile-Scalar / Tile-Immediate

【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa

This document describes operations between tiles and scalar values or immediate constants.

Total Operations:20


Operations

TEXPANDS

For detailed instruction documentation, see isa/TEXPANDS

AS Level 1 (SSA):

%dst = pto.texpands %scalar : dtype -> !pto.tile<...>

AS Level 2 (DPS):

pto.texpands ins(%scalar : dtype) outs(%dst : !pto.tile_buf<...>)

TCMPS

For detailed instruction documentation, see isa/TCMPS

AS Level 1 (SSA):

%dst = pto.tcmps %src, %scalar {cmpMode = #pto<cmp xx>} : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tcmps ins(%src, %scalar{cmpMode = #pto<cmp xx>}: !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSELS

For detailed instruction documentation, see isa/TSELS

AS Level 1 (SSA):

%dst = pto.tsels %src0, %src1, %scalar : (!pto.tile<...>, !pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsels ins(%src0, %src1, %scalar : !pto.tile_buf<...>, !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TMINS

For detailed instruction documentation, see isa/TMINS

AS Level 1 (SSA):

%dst = pto.tmins %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmins ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TADDS

For detailed instruction documentation, see isa/TADDS

AS Level 1 (SSA):

%dst = pto.tadds %src, %scalar : (!pto.tile<...>,dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tadds ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSUBS

For detailed instruction documentation, see isa/TSUBS

AS Level 1 (SSA):

%dst = pto.tsubs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsubs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TDIVS

For detailed instruction documentation, see isa/TDIVS

AS Level 1 (SSA):

%dst = pto.tdivs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...> %dst = pto.tdivs %scalar, %src : (dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tdivs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>) pto.tdivs ins(%scalar, %src : dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

TMULS

For detailed instruction documentation, see isa/TMULS

AS Level 1 (SSA):

%dst = pto.tmuls %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmuls ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TFMODS

For detailed instruction documentation, see isa/TFMODS

AS Level 1 (SSA):

%dst = pto.tfmods %src, %scalar : !pto.tile<...>, f32

AS Level 2 (DPS):

pto.tfmods ins(%src, %scalar : !pto.tile_buf<...>, f32) outs(%dst : !pto.tile_buf<...>)

TREMS

For detailed instruction documentation, see isa/TREMS

AS Level 1 (SSA):

%dst = pto.trems %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.trems ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TMAXS

For detailed instruction documentation, see isa/TMAXS

AS Level 1 (SSA):

%dst = pto.tmaxs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tmaxs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TANDS

For detailed instruction documentation, see isa/TANDS

AS Level 1 (SSA):

%dst = pto.tands %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tands ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TORS

For detailed instruction documentation, see isa/TORS

AS Level 1 (SSA):

%dst = pto.tors %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tors ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSHLS

For detailed instruction documentation, see isa/TSHLS

AS Level 1 (SSA):

%dst = pto.tshls %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tshls ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TSHRS

For detailed instruction documentation, see isa/TSHRS

AS Level 1 (SSA):

%dst = pto.tshrs %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tshrs ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TXORS

For detailed instruction documentation, see isa/TXORS

AS Level 1 (SSA):

%dst = pto.txors %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.txors ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TLRELU

For detailed instruction documentation, see isa/TLRELU

AS Level 1 (SSA):

%dst = pto.tlrelu %src, %scalar : (!pto.tile<...>, dtype) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tlrelu ins(%src, %scalar : !pto.tile_buf<...>, dtype) outs(%dst : !pto.tile_buf<...>)

TADDSC

For detailed instruction documentation, see isa/TADDSC

AS Level 1 (SSA):

%dst = pto.taddsc %src0, %scalar, %src1 : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.taddsc ins(%src0, %scalar, %src1 : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

TSUBSC

For detailed instruction documentation, see isa/TSUBSC

AS Level 1 (SSA):

%dst = pto.tsubsc %src0, %scalar, %src1 : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tsubsc ins(%src0, %scalar, %src1 : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

TPOWS

For detailed instruction documentation, see isa/TPOWS

AS Level 1 (SSA):

%dst = pto.tpows %base, %exp, %tmp : (!pto.tile<...>, dtype, !pto.tile<...>) -> !pto.tile<...>

AS Level 2 (DPS):

pto.tpows ins(%base, %exp, %tmp : !pto.tile_buf<...>, dtype, !pto.tile_buf<...>) outs(%dst : !pto.tile_buf<...>)

【免费下载链接】pto-isaParallel Tile Operation (PTO) is a virtual instruction set architecture designed by Ascend CANN, focusing on tile-level operations. This repository offers high-performance, cross-platform tile operations across Ascend platforms.项目地址: https://gitcode.com/cann/pto-isa

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

http://www.jsqmd.com/news/783487/

相关文章:

  • LIME实战避坑指南:从医疗影像到金融风控的可解释性落地
  • Phi-2小模型深度解析:27亿参数如何实现强推理与高效部署
  • GEE实战:用MOD17A3HGF和MYD17A2H数据,手把手教你生成8天和月度NPP数据集(附完整代码)
  • 基于辩证唯物主义认识论的大语言模型架构设计与机理分析
  • AIGC检测是什么?论文查AI率和论文查重有什么不同?
  • ChatGPT推理能力深度测试:从假设演绎到因果推理的AGI试金石
  • CANN/pypto矩阵乘法API文档
  • 2026年德州沥青加温设备、沥青储存罐与筑路设备源头厂家选购指南 - 企业名录优选推荐
  • Python字典底层原理与工程实践全解
  • CANN/ops-cv ResizeBilinearV2反向传播算子
  • 论文改到崩溃?Paperxie 把查重降重的坑都给你填平了
  • 在 RTOS 里使用 UART——信号量 + DMA 回调框架
  • AdvancedTCA架构:电信与超算融合的技术解析
  • 基于主题建模的教育多模态与生成式AI研究全景分析
  • 初创公司如何借助 Taotoken 的按 token 计费模式控制 AI 实验成本
  • 范进人生轨迹
  • AI预测抗生素耐药性:从数据清洗到可解释模型的全流程实战
  • iOS 开发 事件响应链与手势识别原理
  • CANNOpsTransformer融合因果一维卷积
  • CANN/asc-devkit Asinh函数
  • 2026年山东沥青加温设备、沥青储存罐及筑路设备源头厂家完全选购指南 - 企业名录优选推荐
  • Excel AVERAGE函数底层逻辑与四大均值函数实战指南
  • 哔哩下载姬Downkyi完整指南:从入门到精通的高效B站视频管理方案
  • AArch64系统寄存器架构与Neoverse V3AE核心解析
  • CANN驱动获取设备DIE ID
  • 利用 Taotoken CLI 工具一键配置团队统一开发环境的教程
  • 从源码看本质:扒一扒Java LinkedList里poll()和remove()那点事儿
  • 总担心自己会偷拿别人的东西,原来是侵入性思维!
  • Windows驱动存储架构解析:DriverStore Explorer企业级驱动管理完整方案
  • CANN/cann-recipes-train: Qwen3-1.7B SFT训练示例