CANN PTO ISA逐元素操作

发布时间:2026/7/5 1:25:20

CANN PTO ISA逐元素操作 Elementwise (Tile-Tile)【免费下载链接】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-isaThis document describes element-wise operations between two tiles.Total Operations:29OperationsTADDFor detailed instruction documentation, see isa/TADDAS Level 1 (SSA):%dst pto.tadd %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tadd ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TABSFor detailed instruction documentation, see isa/TABSAS Level 1 (SSA):%dst pto.tabs %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tabs ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TANDFor detailed instruction documentation, see isa/TANDAS Level 1 (SSA):%dst pto.tand %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tand ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TORFor detailed instruction documentation, see isa/TORAS Level 1 (SSA):%dst pto.tor %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tor ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSUBFor detailed instruction documentation, see isa/TSUBAS Level 1 (SSA):%dst pto.tsub %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tsub ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMULFor detailed instruction documentation, see isa/TMULAS Level 1 (SSA):%dst pto.tmul %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tmul ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMINFor detailed instruction documentation, see isa/TMINAS Level 1 (SSA):%dst pto.tmin %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tmin ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TMAXFor detailed instruction documentation, see isa/TMAXAS Level 1 (SSA):%dst pto.tmax %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tmax ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TCMPFor detailed instruction documentation, see isa/TCMPAS Level 1 (SSA):%dst pto.tcmp %src0, %src1{cmpMode #ptocmp xx}: (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tcmp ins(%src0, %src1{cmpMode #ptocmp xx}: !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TDIVFor detailed instruction documentation, see isa/TDIVAS Level 1 (SSA):%dst pto.tdiv %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tdiv ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSHLFor detailed instruction documentation, see isa/TSHLAS Level 1 (SSA):%dst pto.tshl %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tshl ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSHRFor detailed instruction documentation, see isa/TSHRAS Level 1 (SSA):%dst pto.tshr %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tshr ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TXORFor detailed instruction documentation, see isa/TXORAS Level 1 (SSA):%dst pto.txor %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.txor ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TLOGFor detailed instruction documentation, see isa/TLOGAS Level 1 (SSA):%dst pto.tlog %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tlog ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRECIPFor detailed instruction documentation, see isa/TRECIPAS Level 1 (SSA):%dst pto.trecip %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.trecip ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TPRELUFor detailed instruction documentation, see isa/TPRELUAS Level 1 (SSA):%dst pto.tprelu %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tprelu ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TADDCFor detailed instruction documentation, see isa/TADDCAS Level 1 (SSA):%dst pto.taddc %src0, %src1, %src2 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.taddc ins(%src0, %src1, %src2 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSUBCFor detailed instruction documentation, see isa/TSUBCAS Level 1 (SSA):%dst pto.tsubc %src0, %src1, %src2 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tsubc ins(%src0, %src1, %src2 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TCVTFor detailed instruction documentation, see isa/TCVTAS Level 1 (SSA):%dst pto.tcvt %src{rmode #ptoround_mode xx}: !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tcvt ins(%src{rmode #ptoround_mode xx}: !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSELFor detailed instruction documentation, see isa/TSELAS Level 1 (SSA):%dst pto.tsel %mask, %src0, %src1 : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tsel ins(%mask, %src0, %src1 : !pto.tile_buf..., !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRSQRTFor detailed instruction documentation, see isa/TRSQRTAS Level 1 (SSA):%dst pto.trsqrt %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.trsqrt ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TSQRTFor detailed instruction documentation, see isa/TSQRTAS Level 1 (SSA):%dst pto.tsqrt %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tsqrt ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TEXPFor detailed instruction documentation, see isa/TEXPAS Level 1 (SSA):%dst pto.texp %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.texp ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TNOTFor detailed instruction documentation, see isa/TNOTAS Level 1 (SSA):%dst pto.tnot %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tnot ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TRELUFor detailed instruction documentation, see isa/TRELUAS Level 1 (SSA):%dst pto.trelu %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.trelu ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TNEGFor detailed instruction documentation, see isa/TNEGAS Level 1 (SSA):%dst pto.tneg %src : !pto.tile... - !pto.tile...AS Level 2 (DPS):pto.tneg ins(%src : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TREMFor detailed instruction documentation, see isa/TREMAS Level 1 (SSA):%dst pto.trem %src0, %src1 : (!pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.trem ins(%src0, %src1 : !pto.tile_buf..., !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TFMODFor detailed instruction documentation, see isa/TFMODAS Level 1 (SSA):%dst pto.tfmod %src0, %src1 : !pto.tile...AS Level 2 (DPS):pto.tfmod ins(%src0, %src1 : !pto.tile_buf...) outs(%dst : !pto.tile_buf...)TPOWFor detailed instruction documentation, see isa/TPOWAS Level 1 (SSA):%dst pto.tpow %base, %exp, %tmp : (!pto.tile..., !pto.tile..., !pto.tile...) - !pto.tile...AS Level 2 (DPS):pto.tpow ins(%base, %exp, %tmp : !pto.tile_buf..., !pto.tile_buf..., !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),仅供参考

相关新闻