Ascend C API参考
-
-
-
- API列表
- 通用说明和约束
- 数据结构
- 矢量数据搬运
- asc_copy_gm2ub
- asc_copy_gm2ub_align
- asc_copy_ub2gm
- asc_copy_ub2gm_align
- asc_copy_ub2l1
- asc_copy_ub2ub
- asc_ndim_copy_gm2ub
- asc_set_copy_pad_val
- asc_set_gm2ub_loop_size
- asc_set_gm2ub_loop1_stride
- asc_set_gm2ub_loop2_stride
- asc_set_ndim_loop_stride
- asc_set_ndim_pad_count
- asc_set_ndim_pad_value
- asc_set_ub2gm_loop_size
- asc_set_ub2gm_loop1_stride
- asc_set_ub2gm_loop2_stride
- Memory矢量计算
- asc_abs
- asc_add
- asc_add_relu
- asc_add_scalar
- asc_and
- asc_axpy
- asc_bfloat162float
- asc_bfloat162int32
- asc_bitsort
- asc_brcb
- asc_copy
- asc_datablock_reduce_max
- asc_datablock_reduce_min
- asc_datablock_reduce_sum
- asc_deq_int162b8
- asc_deq_int322half
- asc_div
- asc_duplicate
- asc_eq
- asc_eq_scalar
- asc_exp
- asc_float2bfloat16
- asc_float2float
- asc_float2half
- asc_float2int16
- asc_float2int32
- asc_float2int64
- asc_fma
- asc_gather
- asc_gather_datablock
- asc_ge
- asc_ge_scalar
- asc_get_cmp_mask
- asc_get_reduce_max_cnt
- asc_get_reduce_min_cnt
- asc_get_rsvd_count
- asc_get_vms4_sr
- asc_gt
- asc_gt_scalar
- asc_half2float
- asc_half2int16
- asc_half2int32
- asc_half2int4
- asc_half2int8
- asc_half2uint8
- asc_int162float
- asc_int162half
- asc_int322float
- asc_int322int16
- asc_int322int64
- asc_int42half
- asc_int642float
- asc_int642int32
- asc_int82half
- asc_le
- asc_le_scalar
- asc_leakyrelu
- asc_log
- asc_lt
- asc_lt_scalar
- asc_max
- asc_max_scalar
- asc_min
- asc_min_scalar
- asc_mrgsort4
- asc_mul
- asc_mul_add
- asc_mul_add_relu
- asc_mul_cast_half2int8
- asc_mul_cast_half2uint8
- asc_mul_scalar
- asc_ne
- asc_ne_scalar
- asc_not
- asc_or
- asc_pair_reduce_sum
- asc_rcp
- asc_reduce
- asc_relu
- asc_repeat_reduce_max
- asc_repeat_reduce_min
- asc_repeat_reduce_sum
- asc_rsqrt
- asc_select
- asc_set_cmp_mask
- asc_set_deq_scale
- asc_set_mask_count
- asc_set_mask_norm
- asc_set_va_reg
- asc_set_vector_mask
- asc_shiftleft
- asc_shiftright
- asc_sqrt
- asc_squeeze
- asc_sub
- asc_sub_relu
- asc_sub_scalar
- asc_transto5hd
- asc_transpose
- asc_uint82half
- asc_vdeq_int162b8
- Reg矢量计算
- reg数据类型定义
- reg_load
- reg_store
- reg_vector
- asc_abs
- asc_abs_sub
- asc_add
- asc_add_scalar
- asc_addc
- asc_and
- asc_arange
- asc_axpy
- asc_bfloat162e1m2x2
- asc_bfloat162e2m1x2
- asc_bfloat162float
- asc_bfloat162half
- asc_bfloat162int32
- asc_clear_ar_spr
- asc_copy
- asc_create_iter_reg
- asc_create_mask
- asc_cumulative_histogram
- asc_deintlv
- asc_div
- asc_duplicate
- asc_duplicate_scalar
- asc_e1m2x22bfloat16
- asc_e2m1x22bfloat16
- asc_e4m32float
- asc_e5m22float
- asc_eq
- asc_eq_scalar
- asc_exp
- asc_exp_sub
- asc_float2bfloat16
- asc_float2e4m3
- asc_float2e5m2
- asc_float2half
- asc_float2hif8
- asc_float2int16
- asc_float2int32
- asc_float2int64
- asc_frequency_histogram
- asc_ge
- asc_ge_scalar
- asc_gt
- asc_gt_scalar
- asc_half2bfloat16
- asc_half2float
- asc_half2hif8
- asc_half2int16
- asc_half2int32
- asc_half2int4x2
- asc_half2int8
- asc_half2uint8
- asc_hif82float
- asc_hif82half
- asc_int162float
- asc_int162half
- asc_int162int32
- asc_int162uint32
- asc_int162uint8
- asc_int322float
- asc_int322int16
- asc_int322int64
- asc_int322uint16
- asc_int322uint8
- asc_int4x22bfloat16
- asc_int4x22half
- asc_int4x22int16
- asc_int642float
- asc_int642int32
- asc_int82half
- asc_int82int16
- asc_int82int32
- asc_intlv
- asc_le
- asc_le_scalar
- asc_leakyrelu
- asc_ln
- asc_lt
- asc_lt_scalar
- asc_madd
- asc_max
- asc_max_scalar
- asc_mem_bar
- asc_min
- asc_min_scalar
- asc_mul
- asc_mul_scalar
- asc_mull
- asc_muls
- asc_ne
- asc_ne_scalar
- asc_neg
- asc_not
- asc_or
- asc_pack
- asc_pair_reduce_sum
- asc_prelu
- asc_reduce_max
- asc_reduce_max_datablock
- asc_reduce_min
- asc_reduce_min_datablock
- asc_reduce_sum
- asc_reduce_sum_datablock
- asc_relu
- asc_select
- asc_shiftleft
- asc_shiftleft_scalar
- asc_shiftright
- asc_shiftright_scalar
- asc_sqrt
- asc_squeeze
- asc_sub
- asc_subc
- asc_truncate
- asc_uint162uint32
- asc_uint162uint8
- asc_uint322int16
- asc_uint322uint16
- asc_uint322uint8
- asc_uint82half
- asc_uint82uint16
- asc_uint82uint32
- asc_unpack
- asc_unsqueeze
- asc_update_mask
- asc_xor
- 矩阵数据搬运
- asc_copy_gm2l0a
- asc_copy_gm2l0b
- asc_copy_gm2l1
- asc_copy_gm2l1_align
- asc_copy_gm2l1_dn2nz
- asc_copy_gm2l1_nd2nz
- asc_copy_l0c2gm
- asc_copy_l0c2l1
- asc_copy_l0c2ub
- asc_copy_l12bt
- asc_copy_l12fb_arch_2201
- asc_copy_l12fb_arch_3510
- asc_copy_l12gm
- asc_copy_l12l0a
- asc_copy_l12l0a_mx
- asc_copy_l12l0a_trans
- asc_copy_l12l0b
- asc_copy_l12l0b_mx
- asc_copy_l12l0b_sparse
- asc_copy_l12l0b_trans
- asc_copy_l12l0c
- asc_copy_l12ub
- asc_fill_l0a
- asc_fill_l0b
- asc_fill_l1
- asc_load_image_to_cbuf
- asc_set_gm2l1_loop_size
- asc_set_gm2l1_loop1_stride
- asc_set_gm2l1_loop2_stride
- asc_set_gm2l1_pad
- asc_set_l0c_copy_params
- asc_set_l0c_copy_prequant
- asc_set_l0c2gm_lrelu_alpha
- asc_set_l13d_fmatrix
- asc_set_l13d_fmatrix_b
- asc_set_l13d_padding
- asc_set_l13d_rpt
- asc_set_l13d_size
- 矩阵计算
- 标量计算
- 同步控制
- 系统变量
- asc_get_arch_ver
- asc_get_ar_spr
- asc_get_block_idx
- asc_get_block_num
- asc_get_core_id
- asc_get_ctrl
- asc_get_ffts_base_addr
- asc_get_phy_buf_addr
- asc_get_phy_stack_base
- asc_get_program_counter
- asc_get_smmu_tag_version
- asc_get_status
- asc_get_sub_block_id
- asc_get_sub_block_num
- asc_get_sys_virtual_base
- asc_get_system_cycle
- asc_get_vf_len
- asc_set_ctrl
- asc_set_ffts_base_addr
- asc_set_gm2l1_nz_para
- asc_set_l0c2gm_channel_para
- asc_set_l0c2gm_quant_post
- asc_set_l0c2gm_relu_alpha
- asc_set_l12l0_padding_val
- asc_set_l3d_rpt_b
- 缓存控制
- 原子操作
- 其他操作
-
-
-
-
- Matmul使用说明
- Matmul模板参数
- MatmulConfig
- MatmulCallBackFunc
- MatmulPolicy
- GetNormalConfig
- GetMDLConfig
- GetSpecialMDLConfig
- GetIBShareNormConfig
- GetBasicConfig
- GetMMConfig
- REGIST_MATMUL_OBJ
- Init
- SetTensorA
- SetTensorB
- SetTensorScaleA
- SetTensorScaleB
- SetBias
- DisableBias
- GetBatchTensorC
- Iterate
- GetTensorC
- IterateAll
- WaitIterateAll
- IterateBatch
- WaitIterateBatch
- IterateNBatch
- End
- SetHF32
- SetTail
- SetBatchNum
- SetQuantScalar
- SetQuantVector
- SetOrgShape
- SetSingleShape
- SetLocalWorkspace
- SetWorkspace
- SetAntiQuantScalar
- SetAntiQuantVector
- WaitGetTensorC
- GetOffsetC
- AsyncGetTensorC
- SetSubBlockIdx
- GetSubBlockIdx
- SetUserDefInfo
- SetSelfDefineData
- GetMatmulApiTiling
- ClearBias
- GetBatchC
- SetSparseIndex
-
-
- Matmul Tiling类使用说明
- Matmul Tiling类构造函数
- TCubeTiling结构体
- SetAType
- SetBType
- SetScaleAType
- SetScaleBType
- SetCType
- SetBiasType
- SetSingleShape
- SetShape
- SetOrgShape
- SetFixSplit
- EnableMultiCoreSplitK
- EnableBias
- SetBufferSpace
- SetTraverse
- SetMadType
- SetSplitRange
- SetDoubleBuffer
- GetBaseM
- GetBaseN
- GetBaseK
- GetTiling
- EnableL1BankConflictOptimise
- SetDim
- SetSingleRange
- GetSingleShape
- GetCoreNum
- SetAlignSplit
- SetDequantType
- SetALayout
- SetBLayout
- SetCLayout
- SetBatchNum
- SetBatchInfoForNormal
- SetMatmulConfigParams
- SetBias
- SetSplitK
- SetSparse
-
-
-
-
- LayerNorm
- LayerNorm Tiling
- LayerNormGrad
- LayerNormGrad Tiling
- LayerNormGradBeta
- LayerNormGradBeta Tiling
- RmsNorm
- RmsNorm Tiling
- BatchNorm
- BatchNorm Tiling
- DeepNorm
- DeepNorm Tiling
- Normalize
- Normalize Tiling
- WelfordUpdate
- WelfordUpdate Tiling
- WelfordFinalize
- WelfordFinalize Tiling
- GroupNorm
- GroupNorm Tiling
-
- AscendQuant
- GetAscendQuantMaxMinTmpSize
- GetAscendQuantTmpBufferFactorSize
- AscendDequant
- GetAscendDequantMaxMinTmpSize
- GetAscendDequantTmpBufferFactorSize
- AscendAntiQuant
- GetAscendAntiQuantMaxMinTmpSize
- GetAscendAntiQuantTmpBufferFactorSize
- Quantize
- GetQuantizeMaxMinTmpSize
- GetQuantizeTmpBufferFactorSize
- Dequantize
- GetDequantizeMaxMinTmpSize
- GetDequantizeTmpBufferFactorSize
- AntiQuantize
- GetAntiQuantizeMaxMinTmpSize
- GetAntiQuantizeTmpBufferFactorSize
-
-
-
-
-
-
-
-
-
- __float2half
- __float2half_rn
- __float2half_rn_sat
- __float22half2_rn_sat
- __float2half_rz
- __float2half_rz_sat
- __float22half2_rz
- __float22half2_rz_sat
- __float2half_rd
- __float2half_rd_sat
- __float22half2_rd
- __float22half2_rd_sat
- __float2half_ru
- __float2half_ru_sat
- __float22half2_ru
- __float22half2_ru_sat
- __float2half_rna
- __float2half_rna_sat
- __float22half2_rna
- __float22half2_rna_sat
- __float2half_ro
- __float2half_ro_sat
- __float22half2_ro
- __float22half2_ro_sat
- __half2float
- __half2half_rn
- __half2half_rz
- __half2half_rd
- __half2half_ru
- __half2half_rna
- __half2uint_rn
- __half2uint_rz
- __half2uint_rd
- __half2uint_ru
- __half2uint_rna
- __half2int_rn
- __half2int_rz
- __half2int_rd
- __half2int_ru
- __half2ull_rn
- __half2int_rna
- __half2ull_rz
- __half2ull_rd
- __half2ull_ru
- __half2ull_rna
- __half2ll_rn
- __half2ll_rz
- __half2ll_rd
- __half2ll_ru
- __half2ll_rna
- __bfloat162half_rn
- __bfloat162half_rn_sat
- __bfloat162half_rz
- __bfloat162half_rz_sat
- __bfloat162half_rd
- __bfloat162half_rd_sat
- __bfloat162half_ru
- __bfloat162half_ru_sat
- __bfloat162half_rna
- __bfloat162half_rna_sat
- __uint2half_rn
- __uint2half_rn_sat
- __uint2half_rz
- __uint2half_rz_sat
- __uint2half_rd
- __uint2half_rd_sat
- __uint2half_ru
- __uint2half_ru_sat
- __uint2half_rna
- __uint2half_rna_sat
- __int2half_rn
- __int2half_rn_sat
- __int2half_rz
- __int2half_rz_sat
- __int2half_rd
- __int2half_rd_sat
- __int2half_ru
- __int2half_ru_sat
- __int2half_rna
- __int2half_rna_sat
- __ull2half_rn
- __ull2half_rz
- __ull2half_rd
- __ull2half_ru
- __ull2half_rna
- __ll2half_rn
- __ll2half_rz
- __ll2half_rd
- __ll2half_ru
- __ll2half_rna
- __floats2half2_rn
- __float22half2_rn
- __low2half
- __low2half2
- __low2float
- __lowhigh2highlow
- __high2half
- __high2half2
- __high2float
- __highs2half2
- __lows2half2
- __halves2half2
- __half22float2
- __ushort_as_half
-
- __hbeqx2
- __hbnex2
- __hblex2
- __hbgex2
- __hbltx2
- __hbgtx2
- __hbequx2
- __hbneux2
- __hbleux2
- __hbgeux2
- __hbltux2
- __hbgtux2
- __heqx2
- __hnex2
- __hlex2
- __hgex2
- __hltx2
- __hgtx2
- __hequx2
- __hneux2
- __hleux2
- __hgeux2
- __hltux2
- __hgtux2
- __heqx2_mask
- __hnex2_mask
- __hlex2_mask
- __hgex2_mask
- __hltx2_mask
- __hgtx2_mask
- __hequx2_mask
- __hneux2_mask
- __hleux2_mask
- __hgeux2_mask
- __hltux2_mask
- __hgtux2_mask
- __isnanx2
- __hmaxx2
- __hmaxx2_nan
- __hminx2
- __hminx2_nan
-
-
- __float2bfloat16
- __float2bfloat16_rn
- __float2bfloat16_rn_sat
- __float22bfloat162_rn_sat
- __float2bfloat16_rz
- __float2bfloat16_rz_sat
- __float22bfloat162_rz
- __float22bfloat162_rz_sat
- __float2bfloat16_rd
- __float2bfloat16_rd_sat
- __float22bfloat162_rd
- __float22bfloat162_rd_sat
- __float2bfloat16_ru
- __float2bfloat16_ru_sat
- __float22bfloat162_ru
- __float22bfloat162_ru_sat
- __float2bfloat16_rna
- __float2bfloat16_rna_sat
- __float22bfloat162_rna
- __float22bfloat162_rna_sat
- __half2bfloat16_rn
- __half2bfloat16_rz
- __half2bfloat16_rd
- __half2bfloat16_ru
- __half2bfloat16_rna
- __bfloat162float
- __bfloat162bfloat16_rn
- __bfloat162bfloat16_rz
- __bfloat162bfloat16_rd
- __bfloat162bfloat16_ru
- __bfloat162bfloat16_rna
- __bfloat162uint_rn
- __bfloat162uint_rz
- __bfloat162uint_rd
- __bfloat162uint_ru
- __bfloat162uint_rna
- __bfloat162int_rn
- __bfloat162int_rz
- __bfloat162int_rd
- __bfloat162int_ru
- __bfloat162int_rna
- __bfloat162ull_rn
- __bfloat162ull_rz
- __bfloat162ull_rd
- __bfloat162ull_ru
- __bfloat162ull_rna
- __bfloat162ll_rn
- __bfloat162ll_rz
- __bfloat162ll_rd
- __bfloat162ll_ru
- __bfloat162ll_rna
- __uint2bfloat16_rn
- __uint2bfloat16_rz
- __uint2bfloat16_rd
- __uint2bfloat16_ru
- __uint2bfloat16_rna
- __int2bfloat16_rn
- __int2bfloat16_rz
- __int2bfloat16_rd
- __int2bfloat16_ru
- __int2bfloat16_rna
- __ull2bfloat16_rn
- __ull2bfloat16_rz
- __ull2bfloat16_rd
- __ull2bfloat16_ru
- __ull2bfloat16_rna
- __ll2bfloat16_rn
- __ll2bfloat16_rz
- __ll2bfloat16_rd
- __ll2bfloat16_ru
- __ll2bfloat16_rna
- __float2bfloat162_rn
- __floats2bfloat162_rn
- __float22bfloat162_rn
- __bfloat162bfloat162
- __halves2bfloat162
- __high2bfloat16
- __high2bfloat162
- __high2float
- __highs2bfloat162
- __low2bfloat16
- __low2bfloat162
- __low2float
- __lowhigh2highlow
- __lows2bfloat162
- __bfloat1622float2
- __ushort_as_bfloat16
-
- __hbeqx2
- __hbnex2
- __hblex2
- __hbgex2
- __hbltx2
- __hbgtx2
- __hbequx2
- __hbneux2
- __hbleux2
- __hbgeux2
- __hbltux2
- __hbgtux2
- __heqx2
- __hnex2
- __hlex2
- __hgex2
- __hltx2
- __hgtx2
- __hequx2
- __hneux2
- __hleux2
- __hgeux2
- __hltux2
- __hgtux2
- __heqx2_mask
- __hnex2_mask
- __hlex2_mask
- __hgex2_mask
- __hltx2_mask
- __hgtx2_mask
- __hequx2_mask
- __hneux2_mask
- __hleux2_mask
- __hgeux2_mask
- __hltux2_mask
- __hgtux2_mask
- __isnanx2
- __hmaxx2
- __hmaxx2_nan
- __hminx2
- __hminx2_nan
-
- tanf
- tanhf
- tanpif
- atanf
- atan2f
- atanhf
- expf
- exp2f
- exp10f
- expm1f
- logf
- log2f
- log10f
- log1pf
- logbf
- ilogbf
- cosf
- coshf
- cospif
- acosf
- acoshf
- sinf
- sinhf
- sinpif
- asinf
- asinhf
- sincosf
- sincospif
- frexpf
- ldexpf
- sqrtf
- rsqrtf
- hypotf
- rhypotf
- powf
- norm3df
- rnorm3df
- norm4df
- rnorm4df
- normf
- rnormf
- cbrtf
- rcbrtf
- erff
- erfcf
- erfinvf
- erfcinvf
- erfcxf
- tgammaf
- lgammaf
- cyl_bessel_i0f
- cyl_bessel_i1f
- normcdff
- normcdfinvf
- j0f
- j1f
- jnf
- y0f
- y1f
- ynf
- fabsf
- fmaf
- fmaxf
- fminf
- fdimf
- remquof
- fmodf
- remainderf
- copysignf
- nearbyintf
- nextafterf
- scalbnf
- scalblnf
- modff
- fdividef
- signbit
- __saturatef
- __fdividef
- rintf
- lrintf
- llrintf
- roundf
- lroundf
- llroundf
- floorf
- ceilf
- truncf
- isfinite
- isnan
- isinf
-
- 概述
- 类型转换函数
- __float2float_rn
- __float2float_rz
- __float2float_rd
- __float2float_ru
- __float2float_rna
- __float2uint_rn
- __float2uint_rz
- __float2uint_rd
- __float2uint_ru
- __float2uint_rna
- __float2int_rn
- __float2int_rz
- __float2int_rd
- __float2int_ru
- __float2int_rna
- __float2ull_rn
- __float2ull_rz
- __float2ull_rd
- __float2ull_ru
- __float2ull_rna
- __float2ll_rn
- __float2ll_rz
- __float2ll_rd
- __float2ll_ru
- __float2ll_rna
- __uint2float_rn
- __uint2float_rz
- __uint2float_rd
- __uint2float_ru
- __uint2float_rna
- __int2float_rn
- __int2float_rz
- __int2float_rd
- __int2float_ru
- __int2float_rna
- __ull2float_rn
- __ull2float_rz
- __ull2float_rd
- __ull2float_ru
- __ull2float_rna
- __ll2float_rn
- __ll2float_rz
- __ll2float_rd
- __ll2float_ru
- __ll2float_rna
- __int_as_float
- __uint_as_float
- __float_as_int
- __float_as_uint
-
-
-
- is_convertible
- is_base_of
- is_same
- is_void
- is_integral
- is_floating_point
- is_array
- is_pointer
- is_reference
- is_const
- remove_const
- remove_volatile
- remove_cv
- remove_reference
- remove_pointer
- add_const
- add_volatile
- add_cv
- add_pointer
- add_lvalue_reference
- add_rvalue_reference
- enable_if
- conditional
- integral_constant
-
-
-