# Different kernel for the same operation

**URL:** <https://forums.developer.nvidia.com/t/different-kernel-for-the-same-operation/330766>\
**Category:** Deep Learning (Training & Inference)\
**Created:** [April 18, 2025, 4:37am UTC](https://forums.developer.nvidia.com/t/different-kernel-for-the-same-operation/330766 "2025-04-18T04:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal.sahoo2003](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kunal.sahoo2003/32/278180_2.png) [@kunal.sahoo2003](https://forums.developer.nvidia.com/u/kunal.sahoo2003)\
**Post date:** [April 18, 2025, 4:37am UTC](https://forums.developer.nvidia.com/t/different-kernel-for-the-same-operation/330766/1 "2025-04-18T04:37:08Z")

</div>

I am trying to estimate the FLOP of a inverted residual block of MobileNet-v3-large architecture and find the following observation which I am not able to understand.

The first Conv2d having filter dimension (960, 160, 1, 1) for an input feature map of dimension (160, 7, 7), NCU reports that the kernel `sm80_xmma_fprop_implicit_gemm_tf32f32_tf32f32_f32_nhwckrsc_nchw_tilesize128x128x16_stage4_warpsize2x2x1_g1_tensor16x8x8_alignc4_execute_kernel__5x_cudnn` is being used, where as in the last Conv2d layer of the module having filter dimension (160, 960, 1, 1) for an input feature map of dimension (160, 7, 7), NCU reports that the kernel `..cutlass_80_tensorop_s1688gemm_64x64_16x6_nn_align1..`.

Where as in another module of the same architecture, the first and last Conv layers having similar dimensions with input and output channels swapped, we observe the use of same kernel.

Can someone explain the non-uniformity here?

---

<div class="post-metadata">

**Author:** ![Greg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/greg/32/14043_2.png) [@Greg](https://forums.developer.nvidia.com/u/Greg)\
**Post date:** [April 21, 2025, 7:37pm UTC](https://forums.developer.nvidia.com/t/different-kernel-for-the-same-operation/330766/2 "2025-04-21T19:37:03Z")

</div>

This is out of scope for the profiler forum. I would recommend asking this under one of the accelerated library or AI framework forums. The profiler has no knowledge on how the framework/library selected the kernel.
