You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/22 07:40:00 UTC

[GitHub] [tvm] masahi commented on pull request #11088: [Metaschedule] Auto tensorization for CPU / GPU dot product

masahi commented on PR #11088:
URL: https://github.com/apache/tvm/pull/11088#issuecomment-1106114224

   Some perf numbers on int8 `bert-base`:
   
   VNNI, rocketlake 6 core
   ```
    ID |                                                  Name |       FLOP | Weight | Speed (GFLOPS) | Latency (us) | Weighted Latency (us) | Trials | Terminated
   -----------------------------------------------------------------------------------------------------------------------------------------------------------
   -----
     0 |   fused_nn_batch_matmul_multiply_expand_dims_subtract |  228266496 |     12 |      2570.6195 |      88.7982 |             1065.5789 |    256 |
     1 | fused_nn_batch_matmul_multiply_expand_dims_subtract_1 |  226788096 |     12 |      2354.2875 |      96.3298 |             1155.9579 |    256 |
     2 |                  fused_nn_contrib_dense_pack_subtract |  453279744 |     48 |      2630.4608 |     172.3195 |             8271.3371 |    256 | Y
     3 |                fused_nn_contrib_dense_pack_subtract_1 | 1813118976 |     12 |      2773.5020 |     653.7291 |              7844.7493 |    256 |Y
     4 |                fused_nn_contrib_dense_pack_subtract_2 | 1812234240 |     12 |      2775.5088 |     652.9377 |             7835.2520 |    256 | Y
   ----------------------------------------------------------------------------------------------------------------------------------------------------------------
   ```
   
   RTX 3070 with DP4A (FP32 peak around 16 TFLOPS)
   ```
    ID |                    Name |       FLOP | Weight | Speed (GFLOPS) | Latency (us) | Weighted Latency (us) | Trials | Terminated                                                             ----------------------------------------------------------------------------------------------------------------------------------
     0 |   fused_nn_batch_matmul |  226492416 |     12 |     10978.4995 |      20.6305 |              247.5665 |    512 |          Y
     1 | fused_nn_batch_matmul_1 |  226492416 |     12 |     14038.9348 |      16.1332 |              193.5979 |    512 |
     2 |          fused_nn_dense |  452984832 |     48 |     17875.0444 |      25.3417 |             1216.4038 |    512 |          Y
     3 |        fused_nn_dense_1 | 1811939328 |     12 |     25448.8947 |      71.1991 |              854.3896 |    512 |          Y
     4 |        fused_nn_dense_2 | 1811939328 |     12 |     21945.3012 |      82.5662 |              990.7940 |    512 |          Y
   ----------------------------------------------------------------------------------------------------------------------------------                          
   ```
   
   AMDGPU RX6600xt with DP4A (FP32 peak around 10 TFLOPS)
   ```
    ID |                    Name |       FLOP | Weight | Speed (GFLOPS) | Latency (us) | Weighted Latency (us) | Trials | Terminated
    ----------------------------------------------------------------------------------------------------------------------------------
     0 |   fused_nn_batch_matmul |  226492416 |     12 |     10589.5889 |      21.3882 |              256.6586 |    512 |
     1 | fused_nn_batch_matmul_1 |  226492416 |     12 |      9998.6694 |      22.6523 |              271.8271 |    512 |          Y
     2 |          fused_nn_dense |  452984832 |     48 |     13374.8473 |      33.8684 |             1625.6837 |    512 |          Y
     3 |        fused_nn_dense_1 | 1811939328 |     12 |     13873.1209 |     130.6079 |             1567.2949 |    512 |          Y
     4 |        fused_nn_dense_2 | 1811939328 |     12 |     17295.8264 |     104.7617 |             1257.1398 |    512 |          Y
   ----------------------------------------------------------------------------------------------------------------------------------
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org