Merged
docs: 新增SIMT指令理论性能汇总章节 #5543
lizq15Add on Sep 1
docs: 新增SIMT指令理论性能汇总章节 #5543
Merged
Merged fromlizq15/asc-devkitdocsintocann/asc-devkitmaster
Total: 4 files changed+432-1
| @@ -3240,6 +3240,7 @@ | |||
| 3240 | - [原子操作类接口边界值汇总](appendix/atomic_operations_interface_boundary_value_summary.md) | 3240 | - [原子操作类接口边界值汇总](appendix/atomic_operations_interface_boundary_value_summary.md) |
| 3241 | - [SIMT接口软仿情况汇总](appendix/SIMT_interface_soft_simulation_summary.md) | 3241 | - [SIMT接口软仿情况汇总](appendix/SIMT_interface_soft_simulation_summary.md) |
| 3242 | - [SIMT接口精度标准汇总](appendix/SIMT_interface_precision_standard_summary.md) | 3242 | - [SIMT接口精度标准汇总](appendix/SIMT_interface_precision_standard_summary.md) |
| 3243 | + - [SIMT指令理论性能汇总](appendix/SIMT_instruction_theoretical_perf_summary.md) | ||
| 3243 | - [废弃接口](appendix/deprecated_interface.md) | 3244 | - [废弃接口](appendix/deprecated_interface.md) |
| 3244 | - [接口变更说明](appendix/interface_change_description.md) | 3245 | - [接口变更说明](appendix/interface_change_description.md) |
| 3245 | - [Release Notes](appendix/Release_Notes/release_notes.md) | 3246 | - [Release Notes](appendix/Release_Notes/release_notes.md) |
| @@ -0,0 +1,426 @@ | |||
| 1 | +# SIMT指令理论性能汇总 | ||
| 2 | + | ||
| 3 | +<!-- npu="950" id1 --> | ||
| 4 | +本节汇总介绍了SIMT接口的理论性能,仅针对如下型号生效: | ||
| 5 | + | ||
| 6 | +- Ascend 950PR/Ascend 950DT | ||
Outdated 打标签 ![]() ![]() | |||
| 7 | +<!-- end id1 --> | ||
| 8 | + | ||
| 9 | +对本节提供的理论性能指标说明如下: | ||
| 10 | + | ||
| 11 | +- 理论并行度是指单个Vector Core在一个cycle内可以处理的理论最大元素数量。 | ||
| 12 | +- 本节仅汇总由单一硬件指令实现的接口的理论性能,部分软仿接口或由多条硬件指令拼接实现的接口,则不提供理论性能。各接口的软仿情况请参考[SIMT接口软仿情况汇总](SIMT_interface_soft_simulation_summary.md)。 | ||
| 13 | + | ||
| 14 | +## Warp函数 | ||
接口类别顺序建议按照API目录结构顺序 ![]() ![]() | |||
| 15 | + | ||
| 16 | +### Warp Vote类函数 | ||
建议把三级标题作为表标题,删除三级标题 ![]() ![]() | |||
| 17 | + | ||
| 18 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
级别:提示 问题:全文含数百个指向具体接口 md 的相对链接及对 SIMT_interface_soft_simulation_summary.md 的引用,且 diff 后半部分被截断未完全检视,链接有效性无法在本 diff 中确认。 影响:任一目标文件缺失或路径大小写不符都会导致发布后 404,影响文档可用性。 修复建议:合入前使用 markdown-link-check 等工具全量校验相对链接,并确认被截断部分(bfloat16 之后的 float/int 表格等)格式与链接同样正确。 ![]() ![]() | |||
| 19 | +| --- | --- | --- | --- | | ||
| 20 | +| [asc\_all](../SIMT-API/Warp_functions/Warp_vote_functions/asc_all.md) | int32_t | int32_t | 128 | | ||
| 21 | +| [asc\_any](../SIMT-API/Warp_functions/Warp_vote_functions/asc_any.md) | int32_t | int32_t | 128 | | ||
| 22 | +| [asc\_ballot](../SIMT-API/Warp_functions/Warp_vote_functions/asc_ballot.md) | int32_t | uint32_t | 128 | | ||
| 23 | +| [asc\_activemask](../SIMT-API/Warp_functions/Warp_vote_functions/asc_activemask.md) | - | uint32_t | 128 | | ||
| 24 | + | ||
| 25 | +### Warp Shfl类函数 | ||
| 26 | + | ||
| 27 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 28 | +| --- | --- | --- | --- | | ||
| 29 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | int32_t | int32_t | 16 | | ||
| 30 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | uint32_t | uint32_t | 16 | | ||
| 31 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | float | float | 16 | | ||
| 32 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | int64_t | int64_t | 16 | | ||
| 33 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | uint64_t | uint64_t | 16 | | ||
| 34 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | half | half | 16 | | ||
| 35 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | half2 | half2 | 16 | | ||
| 36 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | bfloat16_t | bfloat16_t | 16 | | ||
| 37 | +| [asc\_shfl](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl.md) | bfloat16x2_t | bfloat16x2_t | 16 | | ||
| 38 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | int32_t | int32_t | 16 | | ||
| 39 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | uint32_t | uint32_t | 16 | | ||
| 40 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | float | float | 16 | | ||
| 41 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | int64_t | int64_t | 16 | | ||
| 42 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | uint64_t | uint64_t | 16 | | ||
| 43 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | half | half | 16 | | ||
| 44 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | half2 | half2 | 16 | | ||
| 45 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | bfloat16_t | bfloat16_t | 16 | | ||
| 46 | +| [asc\_shfl\_up](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_up.md) | bfloat16x2_t | bfloat16x2_t | 16 | | ||
| 47 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | int32_t | int32_t | 16 | | ||
| 48 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | uint32_t | uint32_t | 16 | | ||
| 49 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | float | float | 16 | | ||
| 50 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | int64_t | int64_t | 16 | | ||
| 51 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | uint64_t | uint64_t | 16 | | ||
| 52 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | half | half | 16 | | ||
| 53 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | half2 | half2 | 16 | | ||
| 54 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | bfloat16_t | bfloat16_t | 16 | | ||
| 55 | +| [asc\_shfl\_down](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_down.md) | bfloat16x2_t | bfloat16x2_t | 16 | | ||
| 56 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | int32_t | int32_t | 16 | | ||
| 57 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | uint32_t | uint32_t | 16 | | ||
| 58 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | float | float | 16 | | ||
| 59 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | int64_t | int64_t | 16 | | ||
| 60 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | uint64_t | uint64_t | 16 | | ||
| 61 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | half | half | 16 | | ||
| 62 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | half2 | half2 | 16 | | ||
| 63 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | bfloat16_t | bfloat16_t | 16 | | ||
| 64 | +| [asc\_shfl\_xor](../SIMT-API/Warp_functions/Warp_shfl_functions/asc_shfl_xor.md) | bfloat16x2_t | bfloat16x2_t | 16 | | ||
| 65 | + | ||
| 66 | +### Warp Reduce类函数 | ||
| 67 | + | ||
| 68 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 69 | +| --- | --- | --- | --- | | ||
| 70 | +| [asc\_reduce\_add](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_add.md) | int32_t | int32_t | 64 | | ||
| 71 | +| [asc\_reduce\_add](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_add.md) | uint32_t | uint32_t | 64 | | ||
| 72 | +| [asc\_reduce\_add](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_add.md) | float | float | 64 | | ||
| 73 | +| [asc\_reduce\_add](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_add.md) | half | half | 64 | | ||
| 74 | +| [asc\_reduce\_max](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_max.md) | int32_t | int32_t | 64 | | ||
| 75 | +| [asc\_reduce\_max](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_max.md) | uint32_t | uint32_t | 64 | | ||
| 76 | +| [asc\_reduce\_max](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_max.md) | float | float | 64 | | ||
| 77 | +| [asc\_reduce\_max](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_max.md) | half | half | 64 | | ||
| 78 | +| [asc\_reduce\_min](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_min.md) | int32_t | int32_t | 64 | | ||
| 79 | +| [asc\_reduce\_min](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_min.md) | uint32_t | uint32_t | 64 | | ||
| 80 | +| [asc\_reduce\_min](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_min.md) | float | float | 64 | | ||
| 81 | +| [asc\_reduce\_min](../SIMT-API/Warp_functions/Warp_reduce_functions/asc_reduce_min.md) | half | half | 64 | | ||
| 82 | + | ||
| 83 | +### Lane ID类函数 | ||
| 84 | + | ||
| 85 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 86 | +| --- | --- | --- | --- | | ||
| 87 | +| [laneid](../SIMT-API/Warp_functions/lane_id_functions/laneid.md) | - | int32_t | 64 | | ||
| 88 | +| [lanemask\_eq](../SIMT-API/Warp_functions/lane_id_functions/lanemask_eq.md) | - | int32_t | 64 | | ||
| 89 | +| [lanemask\_le](../SIMT-API/Warp_functions/lane_id_functions/lanemask_le.md) | - | int32_t | 64 | | ||
| 90 | +| [lanemask\_lt](../SIMT-API/Warp_functions/lane_id_functions/lanemask_lt.md) | - | int32_t | 64 | | ||
| 91 | +| [lanemask\_ge](../SIMT-API/Warp_functions/lane_id_functions/lanemask_ge.md) | - | int32_t | 64 | | ||
| 92 | +| [lanemask\_gt](../SIMT-API/Warp_functions/lane_id_functions/lanemask_gt.md) | - | int32_t | 64 | | ||
| 93 | + | ||
| 94 | +## 数学函数 | ||
| 95 | + | ||
| 96 | +### half类型 | ||
| 97 | + | ||
| 98 | +#### half类型算术函数 | ||
| 99 | + | ||
| 100 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 101 | +| --- | --- | --- | --- | | ||
| 102 | +| [\_\_hfma](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hfma.md) | half | half | 128 | | ||
| 103 | +| [\_\_hadd](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hadd.md) | half | half | 128 | | ||
| 104 | +| [\_\_hsub](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hsub.md) | half | half | 128 | | ||
| 105 | +| [\_\_hmul](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hmul.md) | half | half | 128 | | ||
| 106 | +| [\_\_hdiv](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hdiv.md) | half | half | 32 | | ||
| 107 | +| [\_\_hneg](../SIMT-API/math_functions/half_type/half_arithmetic_functions/__hneg.md) | half | half | 128 | | ||
| 108 | + | ||
| 109 | +#### half类型数学库函数 | ||
| 110 | + | ||
| 111 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 112 | +| --- | --- | --- | --- | | ||
| 113 | +| [hexp](../SIMT-API/math_functions/half_type/half_math_functions/hexp.md) | half | half | 32 | | ||
| 114 | +| [hlog](../SIMT-API/math_functions/half_type/half_math_functions/hlog.md) | half | half | 32 | | ||
| 115 | +| [hsqrt](../SIMT-API/math_functions/half_type/half_math_functions/hsqrt.md) | half | half | 32 | | ||
| 116 | +| [hrint](../SIMT-API/math_functions/half_type/half_math_functions/hrint.md) | half | half | 64 | | ||
| 117 | +| [hfloor](../SIMT-API/math_functions/half_type/half_math_functions/hfloor.md) | half | half | 64 | | ||
| 118 | +| [hceil](../SIMT-API/math_functions/half_type/half_math_functions/hceil.md) | half | half | 64 | | ||
| 119 | + | ||
| 120 | +对于hexp、hlog接口,上表中数据为非高精度模式下的理论性能。 | ||
| 121 | + | ||
| 122 | + | ||
| 123 | +#### half类型精度转换函数 | ||
| 124 | + | ||
| 125 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 126 | +| --- | --- | --- | --- | | ||
| 127 | +| [\_\_float2half](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half.md) | float | half | 128 | | ||
| 128 | +| [\_\_float2half\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rn.md) | float | half | 128 | | ||
| 129 | +| [\_\_float2half\_rn\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rn_sat.md) | float | half | 128 | | ||
| 130 | +| [\_\_float22half2\_rn\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rn_sat.md) | float2 | half2 | 64 | | ||
| 131 | +| [\_\_float2half\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rz.md) | float | half | 128 | | ||
| 132 | +| [\_\_float2half\_rz\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rz_sat.md) | float | half | 128 | | ||
| 133 | +| [\_\_float22half2\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rz.md) | float2 | half2 | 64 | | ||
| 134 | +| [\_\_float22half2\_rz\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rz_sat.md) | float2 | half2 | 64 | | ||
| 135 | +| [\_\_float2half\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rd.md) | float | half | 128 | | ||
| 136 | +| [\_\_float2half\_rd\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rd_sat.md) | float | half | 128 | | ||
| 137 | +| [\_\_float22half2\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rd.md) | float2 | half2 | 64 | | ||
| 138 | +| [\_\_float22half2\_rd\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rd_sat.md) | float2 | half2 | 64 | | ||
| 139 | +| [\_\_float2half\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_ru.md) | float | half | 128 | | ||
| 140 | +| [\_\_float2half\_ru\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_ru_sat.md) | float | half | 128 | | ||
| 141 | +| [\_\_float22half2\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_ru.md) | float2 | half2 | 64 | | ||
| 142 | +| [\_\_float22half2\_ru\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_ru_sat.md) | float2 | half2 | 64 | | ||
| 143 | +| [\_\_float2half\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rna.md) | float | half | 128 | | ||
| 144 | +| [\_\_float2half\_rna\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_rna_sat.md) | float | half | 128 | | ||
| 145 | +| [\_\_float22half2\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rna.md) | float2 | half2 | 64 | | ||
| 146 | +| [\_\_float22half2\_rna\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rna_sat.md) | float2 | half2 | 64 | | ||
| 147 | +| [\_\_float2half\_ro](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_ro.md) | float | half | 128 | | ||
| 148 | +| [\_\_float2half\_ro\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float2half_ro_sat.md) | float | half | 128 | | ||
| 149 | +| [\_\_float22half2\_ro](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_ro.md) | float2 | half2 | 64 | | ||
| 150 | +| [\_\_float22half2\_ro\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_ro_sat.md) | float2 | half2 | 64 | | ||
| 151 | +| [\_\_half2float](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2float.md) | half | float | 128 | | ||
| 152 | +| [\_\_half2half\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2half_rn.md) | half | half | 64 | | ||
| 153 | +| [\_\_half2half\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2half_rz.md) | half | half | 64 | | ||
| 154 | +| [\_\_half2half\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2half_rd.md) | half | half | 64 | | ||
| 155 | +| [\_\_half2half\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2half_ru.md) | half | half | 64 | | ||
| 156 | +| [\_\_half2half\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2half_rna.md) | half | half | 64 | | ||
| 157 | +| [\_\_half2uint\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2uint_rn.md) | half | unsigned int | 64 | | ||
| 158 | +| [\_\_half2uint\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2uint_rz.md) | half | unsigned int | 64 | | ||
| 159 | +| [\_\_half2uint\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2uint_rd.md) | half | unsigned int | 64 | | ||
| 160 | +| [\_\_half2uint\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2uint_ru.md) | half | unsigned int | 64 | | ||
| 161 | +| [\_\_half2uint\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2uint_rna.md) | half | unsigned int | 64 | | ||
| 162 | +| [\_\_half2int\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2int_rn.md) | half | int | 64 | | ||
| 163 | +| [\_\_half2int\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2int_rz.md) | half | int | 64 | | ||
| 164 | +| [\_\_half2int\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2int_rd.md) | half | int | 64 | | ||
| 165 | +| [\_\_half2int\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2int_ru.md) | half | int | 64 | | ||
| 166 | +| [\_\_half2int\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half2int_rna.md) | half | int | 64 | | ||
| 167 | +| [\_\_bfloat162half\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rn.md) | bfloat16_t | half | 64 | | ||
| 168 | +| [\_\_bfloat162half\_rn\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rn_sat.md) | bfloat16_t | half | 64 | | ||
| 169 | +| [\_\_bfloat162half\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rz.md) | bfloat16_t | half | 64 | | ||
| 170 | +| [\_\_bfloat162half\_rz\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rz_sat.md) | bfloat16_t | half | 64 | | ||
| 171 | +| [\_\_bfloat162half\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rd.md) | bfloat16_t | half | 64 | | ||
| 172 | +| [\_\_bfloat162half\_rd\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rd_sat.md) | bfloat16_t | half | 64 | | ||
| 173 | +| [\_\_bfloat162half\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_ru.md) | bfloat16_t | half | 64 | | ||
| 174 | +| [\_\_bfloat162half\_ru\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_ru_sat.md) | bfloat16_t | half | 64 | | ||
| 175 | +| [\_\_bfloat162half\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rna.md) | bfloat16_t | half | 64 | | ||
| 176 | +| [\_\_bfloat162half\_rna\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__bfloat162half_rna_sat.md) | bfloat16_t | half | 64 | | ||
| 177 | +| [\_\_uint2half\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rn.md) | unsigned int | half | 64 | | ||
| 178 | +| [\_\_uint2half\_rn\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rn_sat.md) | unsigned int | half | 64 | | ||
| 179 | +| [\_\_uint2half\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rz.md) | unsigned int | half | 64 | | ||
| 180 | +| [\_\_uint2half\_rz\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rz_sat.md) | unsigned int | half | 64 | | ||
| 181 | +| [\_\_uint2half\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rd.md) | unsigned int | half | 64 | | ||
| 182 | +| [\_\_uint2half\_rd\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rd_sat.md) | unsigned int | half | 64 | | ||
| 183 | +| [\_\_uint2half\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_ru.md) | unsigned int | half | 64 | | ||
| 184 | +| [\_\_uint2half\_ru\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_ru_sat.md) | unsigned int | half | 64 | | ||
| 185 | +| [\_\_uint2half\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rna.md) | unsigned int | half | 64 | | ||
| 186 | +| [\_\_uint2half\_rna\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__uint2half_rna_sat.md) | unsigned int | half | 64 | | ||
| 187 | +| [\_\_int2half\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rn.md) | int | half | 64 | | ||
| 188 | +| [\_\_int2half\_rn\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rn_sat.md) | int | half | 64 | | ||
| 189 | +| [\_\_int2half\_rz](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rz.md) | int | half | 64 | | ||
| 190 | +| [\_\_int2half\_rz\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rz_sat.md) | int | half | 64 | | ||
| 191 | +| [\_\_int2half\_rd](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rd.md) | int | half | 64 | | ||
| 192 | +| [\_\_int2half\_rd\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rd_sat.md) | int | half | 64 | | ||
| 193 | +| [\_\_int2half\_ru](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_ru.md) | int | half | 64 | | ||
| 194 | +| [\_\_int2half\_ru\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_ru_sat.md) | int | half | 64 | | ||
| 195 | +| [\_\_int2half\_rna](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rna.md) | int | half | 64 | | ||
| 196 | +| [\_\_int2half\_rna\_sat](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__int2half_rna_sat.md) | int | half | 64 | | ||
| 197 | +| [\_\_float22half2\_rn](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__float22half2_rn.md) | float2 | half2 | 64 | | ||
| 198 | +| [\_\_high2half](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__high2half.md) | half2 | half | 128 | | ||
| 199 | +| [\_\_half22float2](../SIMT-API/math_functions/half_type/half_precision_conversion_functions/__half22float2.md) | half2 | float2 | 64 | | ||
| 200 | + | ||
| 201 | +#### half2类型算术函数 | ||
| 202 | + | ||
| 203 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 204 | +| --- | --- | --- | --- | | ||
| 205 | +| [\_\_haddx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__haddx2.md) | half2 | half2 | 128 | | ||
| 206 | +| [\_\_hsubx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__hsubx2.md) | half2 | half2 | 128 | | ||
| 207 | +| [\_\_hmulx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__hmulx2.md) | half2 | half2 | 128 | | ||
| 208 | +| [\_\_hdivx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__hdivx2.md) | half2 | half2 | 16 | | ||
| 209 | +| [\_\_habsx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__habsx2.md) | half2 | half2 | 128 | | ||
| 210 | +| [\_\_hfmax2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__hfmax2.md) | half2 | half2 | 128 | | ||
| 211 | +| [\_\_hnegx2](../SIMT-API/math_functions/half_type/half2_arithmetic_functions/__hnegx2.md) | half2 | half2 | 128 | | ||
| 212 | + | ||
| 213 | +#### half2类型比较函数 | ||
| 214 | + | ||
| 215 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 216 | +| --- | --- | --- | --- | | ||
| 217 | +| [\_\_hmaxx2](../SIMT-API/math_functions/half_type/half2_compare_functions/__hmaxx2.md) | half2 | half2 | 128 | | ||
| 218 | +| [\_\_hminx2](../SIMT-API/math_functions/half_type/half2_compare_functions/__hminx2.md) | half2 | half2 | 128 | | ||
| 219 | + | ||
| 220 | +#### half2类型数学库函数 | ||
| 221 | + | ||
| 222 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 223 | +| --- | --- | --- | --- | | ||
| 224 | +| [h2exp](../SIMT-API/math_functions/half_type/half2_math_functions/h2exp.md) | half2 | half2 | 16 | | ||
| 225 | +| [h2log](../SIMT-API/math_functions/half_type/half2_math_functions/h2log.md) | half2 | half2 | 16 | | ||
| 226 | +| [h2sqrt](../SIMT-API/math_functions/half_type/half2_math_functions/h2sqrt.md) | half2 | half2 | 16 | | ||
| 227 | + | ||
| 228 | +对于h2exp、h2log接口,上表中数据为非高精度模式下的理论性能。 | ||
| 229 | + | ||
| 230 | +### bfloat16类型 | ||
| 231 | + | ||
| 232 | +#### bfloat16类型算术函数 | ||
| 233 | + | ||
| 234 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 235 | +| --- | --- | --- | --- | | ||
| 236 | +| [\_\_hfma](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hfma.md) | bfloat16_t | bfloat16_t | 128 | | ||
| 237 | +| [\_\_hadd](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hadd.md) | bfloat16_t | bfloat16_t | 128 | | ||
| 238 | +| [\_\_hsub](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hsub.md) | bfloat16_t | bfloat16_t | 128 | | ||
| 239 | +| [\_\_hmul](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hmul.md) | bfloat16_t | bfloat16_t | 128 | | ||
| 240 | +| [\_\_hdiv](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hdiv.md) | bfloat16_t | bfloat16_t | 32 | | ||
| 241 | +| [\_\_hneg](../SIMT-API/math_functions/bfloat16_type/bfloat16_arithmetic_functions/__hneg.md) | bfloat16_t | bfloat16_t | 128 | | ||
| 242 | + | ||
| 243 | +#### bfloat16类型数学库函数 | ||
| 244 | + | ||
| 245 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 246 | +| --- | --- | --- | --- | | ||
| 247 | +| [hrint](../SIMT-API/math_functions/bfloat16_type/bfloat16_math_functions/hrint.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 248 | +| [hfloor](../SIMT-API/math_functions/bfloat16_type/bfloat16_math_functions/hfloor.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 249 | +| [hceil](../SIMT-API/math_functions/bfloat16_type/bfloat16_math_functions/hceil.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 250 | + | ||
| 251 | +#### bfloat16类型精度转换函数 | ||
| 252 | + | ||
| 253 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 254 | +| --- | --- | --- | --- | | ||
| 255 | +| [\_\_float2bfloat16](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16.md) | float | bfloat16_t | 128 | | ||
| 256 | +| [\_\_float2bfloat16\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rn.md) | float | bfloat16_t | 128 | | ||
| 257 | +| [\_\_float2bfloat16\_rn\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rn_sat.md) | float | bfloat16_t | 128 | | ||
| 258 | +| [\_\_float22bfloat162\_rn\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rn_sat.md) | float2 | bfloat16x2_t | 64 | | ||
| 259 | +| [\_\_float2bfloat16\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rz.md) | float | bfloat16_t | 128 | | ||
| 260 | +| [\_\_float2bfloat16\_rz\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rz_sat.md) | float | bfloat16_t | 128 | | ||
| 261 | +| [\_\_float22bfloat162\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rz.md) | float2 | bfloat16x2_t | 64 | | ||
| 262 | +| [\_\_float22bfloat162\_rz\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rz_sat.md) | float2 | bfloat16x2_t | 64 | | ||
| 263 | +| [\_\_float2bfloat16\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rd.md) | float | bfloat16_t | 128 | | ||
| 264 | +| [\_\_float2bfloat16\_rd\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rd_sat.md) | float | bfloat16_t | 128 | | ||
| 265 | +| [\_\_float22bfloat162\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rd.md) | float2 | bfloat16x2_t | 64 | | ||
| 266 | +| [\_\_float22bfloat162\_rd\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rd_sat.md) | float2 | bfloat16x2_t | 64 | | ||
| 267 | +| [\_\_float2bfloat16\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_ru.md) | float | bfloat16_t | 128 | | ||
| 268 | +| [\_\_float2bfloat16\_ru\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_ru_sat.md) | float | bfloat16_t | 128 | | ||
| 269 | +| [\_\_float22bfloat162\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_ru.md) | float2 | bfloat16x2_t | 64 | | ||
| 270 | +| [\_\_float22bfloat162\_ru\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_ru_sat.md) | float2 | bfloat16x2_t | 64 | | ||
| 271 | +| [\_\_float2bfloat16\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rna.md) | float | bfloat16_t | 128 | | ||
| 272 | +| [\_\_float2bfloat16\_rna\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float2bfloat16_rna_sat.md) | float | bfloat16_t | 128 | | ||
| 273 | +| [\_\_float22bfloat162\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rna.md) | float2 | bfloat16x2_t | 64 | | ||
| 274 | +| [\_\_float22bfloat162\_rna\_sat](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rna_sat.md) | float2 | bfloat16x2_t | 64 | | ||
| 275 | +| [\_\_half2bfloat16\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__half2bfloat16_rn.md) | half | bfloat16_t | 64 | | ||
| 276 | +| [\_\_half2bfloat16\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__half2bfloat16_rz.md) | half | bfloat16_t | 64 | | ||
| 277 | +| [\_\_half2bfloat16\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__half2bfloat16_rd.md) | half | bfloat16_t | 64 | | ||
| 278 | +| [\_\_half2bfloat16\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__half2bfloat16_ru.md) | half | bfloat16_t | 64 | | ||
| 279 | +| [\_\_half2bfloat16\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__half2bfloat16_rna.md) | half | bfloat16_t | 64 | | ||
| 280 | +| [\_\_bfloat162float](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162float.md) | bfloat16_t | float | 128 | | ||
| 281 | +| [\_\_bfloat162bfloat16\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162bfloat16_rn.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 282 | +| [\_\_bfloat162bfloat16\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162bfloat16_rz.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 283 | +| [\_\_bfloat162bfloat16\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162bfloat16_rd.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 284 | +| [\_\_bfloat162bfloat16\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162bfloat16_ru.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 285 | +| [\_\_bfloat162bfloat16\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162bfloat16_rna.md) | bfloat16_t | bfloat16_t | 64 | | ||
| 286 | +| [\_\_bfloat162uint\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162uint_rn.md) | bfloat16_t | unsigned int | 64 | | ||
| 287 | +| [\_\_bfloat162uint\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162uint_rz.md) | bfloat16_t | unsigned int | 64 | | ||
| 288 | +| [\_\_bfloat162uint\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162uint_rd.md) | bfloat16_t | unsigned int | 64 | | ||
| 289 | +| [\_\_bfloat162uint\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162uint_ru.md) | bfloat16_t | unsigned int | 64 | | ||
| 290 | +| [\_\_bfloat162uint\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162uint_rna.md) | bfloat16_t | unsigned int | 64 | | ||
| 291 | +| [\_\_bfloat162int\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162int_rn.md) | bfloat16_t | int | 64 | | ||
| 292 | +| [\_\_bfloat162int\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162int_rz.md) | bfloat16_t | int | 64 | | ||
| 293 | +| [\_\_bfloat162int\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162int_rd.md) | bfloat16_t | int | 64 | | ||
| 294 | +| [\_\_bfloat162int\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162int_ru.md) | bfloat16_t | int | 64 | | ||
| 295 | +| [\_\_bfloat162int\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat162int_rna.md) | bfloat16_t | int | 64 | | ||
| 296 | +| [\_\_uint2bfloat16\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__uint2bfloat16_rn.md) | unsigned int | bfloat16_t | 64 | | ||
| 297 | +| [\_\_uint2bfloat16\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__uint2bfloat16_rz.md) | unsigned int | bfloat16_t | 64 | | ||
| 298 | +| [\_\_uint2bfloat16\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__uint2bfloat16_rd.md) | unsigned int | bfloat16_t | 64 | | ||
| 299 | +| [\_\_uint2bfloat16\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__uint2bfloat16_ru.md) | unsigned int | bfloat16_t | 64 | | ||
| 300 | +| [\_\_uint2bfloat16\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__uint2bfloat16_rna.md) | unsigned int | bfloat16_t | 64 | | ||
| 301 | +| [\_\_int2bfloat16\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__int2bfloat16_rn.md) | int | bfloat16_t | 64 | | ||
| 302 | +| [\_\_int2bfloat16\_rz](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__int2bfloat16_rz.md) | int | bfloat16_t | 64 | | ||
| 303 | +| [\_\_int2bfloat16\_rd](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__int2bfloat16_rd.md) | int | bfloat16_t | 64 | | ||
| 304 | +| [\_\_int2bfloat16\_ru](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__int2bfloat16_ru.md) | int | bfloat16_t | 64 | | ||
| 305 | +| [\_\_int2bfloat16\_rna](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__int2bfloat16_rna.md) | int | bfloat16_t | 64 | | ||
| 306 | +| [\_\_float22bfloat162\_rn](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__float22bfloat162_rn.md) | float2 | bfloat16x2_t | 64 | | ||
| 307 | +| [\_\_high2bfloat16](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__high2bfloat16.md) | bfloat16x2_t | bfloat16_t | 128 | | ||
| 308 | +| [\_\_bfloat1622float2](../SIMT-API/math_functions/bfloat16_type/bfloat16_precision_conversion_functions/__bfloat1622float2.md) | bfloat16x2_t | float2 | 64 | | ||
| 309 | + | ||
| 310 | +#### bfloat16x2类型算术函数 | ||
| 311 | + | ||
| 312 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 313 | +| --- | --- | --- | --- | | ||
| 314 | +| [\_\_haddx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__haddx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 315 | +| [\_\_hsubx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__hsubx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 316 | +| [\_\_hmulx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__hmulx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 317 | +| [\_\_hdivx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__hdivx2.md) | bfloat16x2_t | bfloat16x2_t | 16 | | ||
| 318 | +| [\_\_habsx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__habsx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 319 | +| [\_\_hfmax2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__hfmax2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 320 | +| [\_\_hnegx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_arithmetic_functions/__hnegx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 321 | + | ||
| 322 | +#### bfloat16x2类型比较函数 | ||
| 323 | + | ||
| 324 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 325 | +| --- | --- | --- | --- | | ||
| 326 | +| [\_\_hmaxx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_compare_functions/__hmaxx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 327 | +| [\_\_hminx2](../SIMT-API/math_functions/bfloat16_type/bfloat16x2_compare_functions/__hminx2.md) | bfloat16x2_t | bfloat16x2_t | 128 | | ||
| 328 | + | ||
| 329 | +### float类型 | ||
| 330 | + | ||
| 331 | +#### float类型数学库函数 | ||
| 332 | + | ||
| 333 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 334 | +| --- | --- | --- | --- | | ||
| 335 | +| [expf](../SIMT-API/math_functions/float_math_functions/expf.md) | float | float | 32 | | ||
| 336 | +| [sqrtf](../SIMT-API/math_functions/float_math_functions/sqrtf.md) | float | float | 32 | | ||
| 337 | +| [fabsf](../SIMT-API/math_functions/float_math_functions/fabsf.md) | float | float | 128 | | ||
| 338 | +| [fmaf](../SIMT-API/math_functions/float_math_functions/fmaf.md) | float | float | 128 | | ||
| 339 | +| [\_\_fdividef](../SIMT-API/math_functions/float_math_functions/__fdividef.md) | float | float | 32 | | ||
| 340 | +| [rintf](../SIMT-API/math_functions/float_math_functions/rintf.md) | float | float | 64 | | ||
| 341 | +| [roundf](../SIMT-API/math_functions/float_math_functions/roundf.md) | float | float | 64 | | ||
| 342 | +| [floorf](../SIMT-API/math_functions/float_math_functions/floorf.md) | float | float | 64 | | ||
| 343 | +| [ceilf](../SIMT-API/math_functions/float_math_functions/ceilf.md) | float | float | 64 | | ||
| 344 | + | ||
| 345 | +对于expf、sqrf接口,上表中数据为非高精度模式下的理论性能。 | ||
| 346 | + | ||
| 347 | +### 数据类型转换 | ||
| 348 | + | ||
| 349 | +#### 数据类型转换函数 | ||
| 350 | + | ||
| 351 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 352 | +| --- | --- | --- | --- | | ||
| 353 | +| [\_\_float2float\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2float_rn.md) | float | float | 64 | | ||
| 354 | +| [\_\_float2float\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2float_rz.md) | float | float | 64 | | ||
| 355 | +| [\_\_float2float\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2float_rd.md) | float | float | 64 | | ||
| 356 | +| [\_\_float2float\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2float_ru.md) | float | float | 64 | | ||
| 357 | +| [\_\_float2float\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2float_rna.md) | float | float | 64 | | ||
| 358 | +| [\_\_float2uint\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2uint_rn.md) | float | unsigned int | 64 | | ||
| 359 | +| [\_\_float2uint\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2uint_rz.md) | float | unsigned int | 64 | | ||
| 360 | +| [\_\_float2uint\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2uint_rd.md) | float | unsigned int | 64 | | ||
| 361 | +| [\_\_float2uint\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2uint_ru.md) | float | unsigned int | 64 | | ||
| 362 | +| [\_\_float2uint\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2uint_rna.md) | float | unsigned int | 64 | | ||
| 363 | +| [\_\_float2int\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2int_rn.md) | float | int | 64 | | ||
| 364 | +| [\_\_float2int\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2int_rz.md) | float | int | 64 | | ||
| 365 | +| [\_\_float2int\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2int_rd.md) | float | int | 64 | | ||
| 366 | +| [\_\_float2int\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2int_ru.md) | float | int | 64 | | ||
| 367 | +| [\_\_float2int\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2int_rna.md) | float | int | 64 | | ||
| 368 | +| [\_\_float2ull\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ull_rn.md) | float | unsigned long long int | 32 | | ||
| 369 | +| [\_\_float2ull\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ull_rz.md) | float | unsigned long long int | 32 | | ||
| 370 | +| [\_\_float2ull\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ull_rd.md) | float | unsigned long long int | 32 | | ||
| 371 | +| [\_\_float2ull\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ull_ru.md) | float | unsigned long long int | 32 | | ||
| 372 | +| [\_\_float2ull\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ull_rna.md) | float | unsigned long long int | 32 | | ||
| 373 | +| [\_\_float2ll\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ll_rn.md) | float | long long int | 32 | | ||
| 374 | +| [\_\_float2ll\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ll_rz.md) | float | long long int | 32 | | ||
| 375 | +| [\_\_float2ll\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ll_rd.md) | float | long long int | 32 | | ||
| 376 | +| [\_\_float2ll\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ll_ru.md) | float | long long int | 32 | | ||
| 377 | +| [\_\_float2ll\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__float2ll_rna.md) | float | long long int | 32 | | ||
| 378 | +| [\_\_uint2float\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__uint2float_rn.md) | unsigned int | float | 64 | | ||
| 379 | +| [\_\_uint2float\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__uint2float_rz.md) | unsigned int | float | 64 | | ||
| 380 | +| [\_\_uint2float\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__uint2float_rd.md) | unsigned int | float | 64 | | ||
| 381 | +| [\_\_uint2float\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__uint2float_ru.md) | unsigned int | float | 64 | | ||
| 382 | +| [\_\_uint2float\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__uint2float_rna.md) | unsigned int | float | 64 | | ||
| 383 | +| [\_\_int2float\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__int2float_rn.md) | int | float | 64 | | ||
| 384 | +| [\_\_int2float\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__int2float_rz.md) | int | float | 64 | | ||
| 385 | +| [\_\_int2float\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__int2float_rd.md) | int | float | 64 | | ||
| 386 | +| [\_\_int2float\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__int2float_ru.md) | int | float | 64 | | ||
| 387 | +| [\_\_int2float\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__int2float_rna.md) | int | float | 64 | | ||
| 388 | +| [\_\_ull2float\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ull2float_rn.md) | unsigned long long int | float | 32 | | ||
| 389 | +| [\_\_ull2float\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ull2float_rz.md) | unsigned long long int | float | 32 | | ||
| 390 | +| [\_\_ull2float\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ull2float_rd.md) | unsigned long long int | float | 32 | | ||
| 391 | +| [\_\_ull2float\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ull2float_ru.md) | unsigned long long int | float | 32 | | ||
| 392 | +| [\_\_ull2float\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ull2float_rna.md) | unsigned long long int | float | 32 | | ||
| 393 | +| [\_\_ll2float\_rn](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ll2float_rn.md) | long long int | float | 32 | | ||
| 394 | +| [\_\_ll2float\_rz](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ll2float_rz.md) | long long int | float | 32 | | ||
| 395 | +| [\_\_ll2float\_rd](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ll2float_rd.md) | long long int | float | 32 | | ||
| 396 | +| [\_\_ll2float\_ru](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ll2float_ru.md) | long long int | float | 32 | | ||
| 397 | +| [\_\_ll2float\_rna](../SIMT-API/math_functions/data_type_conversion/type_conversion_functions/__ll2float_rna.md) | long long int | float | 32 | | ||
| 398 | + | ||
| 399 | +### 整型 | ||
| 400 | + | ||
| 401 | +#### 整型数学库函数 | ||
| 402 | + | ||
| 403 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 404 | +| --- | --- | --- | --- | | ||
| 405 | +| [umax](../SIMT-API/math_functions/integer_math_functions/umax.md) | unsigned int | unsigned int | 128 | | ||
| 406 | +| [umin](../SIMT-API/math_functions/integer_math_functions/umin.md) | unsigned int | unsigned int | 128 | | ||
| 407 | +| [\_\_mulhi](../SIMT-API/math_functions/integer_math_functions/__mulhi.md) | int | int | 64 | | ||
| 408 | +| [\_\_umulhi](../SIMT-API/math_functions/integer_math_functions/__umulhi.md) | unsigned int | unsigned int | 64 | | ||
| 409 | +| [\_\_mul64hi](../SIMT-API/math_functions/integer_math_functions/__mul64hi.md) | long long | long long | 64 | | ||
| 410 | +| [\_\_umul64hi](../SIMT-API/math_functions/integer_math_functions/__umul64hi.md) | unsigned long long | unsigned long long | 64 | | ||
| 411 | +| [\_\_mul\_i32toi64](../SIMT-API/math_functions/integer_math_functions/__mul_i32toi64.md) | int | long long | 64 | | ||
| 412 | +| [\_\_mul\_i32toi64](../SIMT-API/math_functions/integer_math_functions/__mul_i32toi64.md) | unsigned int | unsigned long long | 64 | | ||
| 413 | +| [\_\_brev](../SIMT-API/math_functions/integer_math_functions/__brev.md) | unsigned int | unsigned int | 128 | | ||
| 414 | +| [\_\_popc](../SIMT-API/math_functions/integer_math_functions/__popc.md) | unsigned int | int | 128 | | ||
| 415 | +| [\_\_byte\_perm](../SIMT-API/math_functions/integer_math_functions/__byte_perm.md) | unsigned int | unsigned int | 128 | | ||
| 416 | +| [max](../SIMT-API/math_functions/integer_math_functions/max.md) | int | int | 128 | | ||
| 417 | +| [max](../SIMT-API/math_functions/integer_math_functions/max.md) | unsigned int | unsigned int | 128 | | ||
| 418 | +| [min](../SIMT-API/math_functions/integer_math_functions/min.md) | int | int | 128 | | ||
| 419 | +| [min](../SIMT-API/math_functions/integer_math_functions/min.md) | unsigned int | unsigned int | 128 | | ||
| 420 | + | ||
| 421 | +## 地址空间转换函数 | ||
| 422 | + | ||
| 423 | +| 接口 | 输入数据类型 | 输出数据类型 | 理论并行度(elements/cycle) | | ||
| 424 | +| --- | --- | --- | --- | | ||
| 425 | +| [\_\_cvta\_generic\_to\_global](../SIMT-API/address_space_conversion_functions/__cvta_generic_to_global.md) | const void\* | size_t | 32 | | ||
| 426 | +| [\_\_cvta\_global\_to\_generic](../SIMT-API/address_space_conversion_functions/__cvta_global_to_generic.md) | size_t | void\* | 32 | | ||
| @@ -36,6 +36,8 @@ | |||
| 36 | 36 | ||
| 37 | - **[SIMT接口精度标准汇总](SIMT_interface_precision_standard_summary.md)** | 37 | - **[SIMT接口精度标准汇总](SIMT_interface_precision_standard_summary.md)** |
| 38 | 38 | ||
| 39 | +- **[SIMT指令理论性能汇总](SIMT_instruction_theoretical_perf_summary.md)** | ||
级别:提示 问题:仅新增中文版汇总页并更新中文目录,未见英文镜像(如 docs/en/api/appendix)同步变更。 影响:若仓库维护中英双语文档,将出现中英目录与内容不一致,英文用户缺失该性能数据。 修复建议:若仓库维护英文镜像,请同步新增英文版汇总页并更新对应 appendix 目录。 ![]() ![]() | |||
| 40 | + | ||
| 39 | - **[废弃接口](deprecated_interface.md)** | 41 | - **[废弃接口](deprecated_interface.md)** |
| 40 | 42 | ||
| 41 | - **[接口变更说明](interface_change_description.md)** | 43 | - **[接口变更说明](interface_change_description.md)** |
| @@ -17,7 +17,9 @@ | |||
| 17 | - 对于矢量计算API,若接口调用的传入参数`count`或`repeatTime`取值为0,不会执行计算操作,不会对目的操作数进行写入,该接口将被视为NOP(空操作),但相较于不调用会有额外性能耗时。 | 17 | - 对于矢量计算API,若接口调用的传入参数`count`或`repeatTime`取值为0,不会执行计算操作,不会对目的操作数进行写入,该接口将被视为NOP(空操作),但相较于不调用会有额外性能耗时。 |
| 18 | 18 | ||
| 19 | <!-- npu="950" id5 --> | 19 | <!-- npu="950" id5 --> |
| 20 | -针对Ascend 950PR/Ascend 950DT:<br>Memory矢量计算API主要由Reg矢量计算API实现,这类Memory矢量计算API不涉及理论性能。部分数据排布转换类、排序组合类、数据搬运类、标量计算类、工具接口类的指令理论性能汇总请参考表1-表5。 | 20 | +针对Ascend 950PR/Ascend 950DT: |
| 21 | +- Memory矢量计算API主要由Reg矢量计算API实现,这类Memory矢量计算API不涉及理论性能。部分数据排布转换类、排序组合类、数据搬运类、标量计算类、工具接口类的指令理论性能汇总请参考表1-表5。 | ||
| 22 | +- SIMT相关API的理论性能请参考[SIMT指令理论性能汇总](./SIMT_instruction_theoretical_perf_summary.md)。 | ||
| 21 | 23 | ||
| 22 | **表1** 数据排布转换类指令理论性能汇总 | 24 | **表1** 数据排布转换类指令理论性能汇总 |
| 23 | 25 | ||


确认index.md