# Row-wise EmbeddingCollection kernel-to-source map

This directory explains the general row-wise `ShardedEmbeddingCollection` lookup path and maps a representative set of GPU activities to their logical op and TorchRec call site.

The corresponding autograd path is documented in [`backward.html`](backward.html), with source notes in [`BACKWARD.md`](BACKWARD.md).

## Coverage

- 103 TorchRec activities: 85 kernels, 8 memcpy operations, and 10 memsets.
- Source checkout: `1d87b8f79b7bb1671cb8be3e646e99e835cce610`.
- Machine-readable detail: [`kernel_source_map.csv`](kernel_source_map.csv).

Application-specific computation that merely overlaps an asynchronous collective is excluded from this generic TorchRec view.

## Attribution method

1. Select GPU activities whose CUDA launch correlation belongs to the row-wise `ShardedEmbeddingCollection` forward.
2. Recover operator names such as `jagged_unique_indices`, `block_bucketize_sparse_features`, and `All2All_Seq_Req` from the ordered activity signatures and operator annotations.
3. Resolve each recovered op to the commit-pinned TorchRec call site. CUB/ATen implementation children map to their enclosing TorchRec/FBGEMM op rather than inventing a separate TorchRec call.
4. Exclude unrelated application work that overlaps the asynchronous output AllToAll.

Visual styling follows [JacoCheung's dynamicemb diagrams](https://github.com/JacoCheung/visualization/tree/main/recsys-examples/dynamicemb).

## Participant type inventory

| Participant | Runtime type | TorchRec definition / construction |
|---|---|---|
| `ShardedEmbeddingCollection` | `nn.Module` | [embedding.py:432](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L432) |
| `RwSparseFeaturesDist` | `nn.Module` | [rw_sharding.py:361](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/sharding/rw_sharding.py#L361) |
| `KJTAllToAll` | `nn.Module` | [dist_data.py:1146](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L1146) |
| `GroupedEmbeddingsLookup` | `nn.Module` | [embedding_lookup.py:209](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_lookup.py#L209) |
| `BatchedFusedEmbedding` | `nn.Module` | [batched_embedding_kernel.py:2530](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L2530) |
| `SplitTableBatchedEmbeddingBagsCodegen` | FBGEMM `nn.Module` | constructed by TorchRec at [batched_embedding_kernel.py:2565](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L2565) |
| `RwSequenceEmbeddingDist` | `nn.Module` | [rw_sequence_sharding.py:57](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/sharding/rw_sequence_sharding.py#L57) |
| `SequenceEmbeddingsAllToAll` | `nn.Module` | [dist_data.py:1983](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L1983) |
| `SplitsAllToAllAwaitable` | `Awaitable`, not Module | [dist_data.py:440](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L440) |
| `KJTAllToAllSplitsAwaitable` | `Awaitable`, not Module | [dist_data.py:877](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L877) |
| `KJTAllToAllTensorsAwaitable` | `Awaitable`, not Module | [dist_data.py:686](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L686) |
| `SequenceEmbeddingsAwaitable` | `Awaitable`, not Module | [dist_data.py:1941](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L1941) |
| `EmbeddingCollectionAwaitable` | `LazyAwaitable`, not Module | [embedding.py:343](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L343) |
| `All2All_Seq_Req` / `All2All_Seq_Req_Wait` | `autograd.Function`, not Module | [comm_ops.py:1916](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1916) / [comm_ops.py:2061](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L2061) |
| `KeyedJaggedTensor` | data object, not Module | [jagged_tensor.py:1910](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L1910) |
| `construct_jagged_tensors` | function, not Module | [modules/utils.py:246](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L246) |

## Phase counts

| Phase | Activities |
|---|---:|
| `input_dist` | 14 |
| `input_dist_wait` | 13 |
| `input_prepare` | 7 |
| `lookup` | 7 |
| `output_dist` | 13 |
| `output_dist_wait` | 2 |
| `postprocess` | 9 |
| `unique` | 38 |

## Every activity

| # | Event | GPU start ms | Duration us | Activity/kernel | Logical op | Owner | Source |
|---:|---|---:|---:|---|---|---|---|
| 1 | kernel:4034 | 6.018240 | 2.144 | permute_2D_lengths_kernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 2 | kernel:4035 | 6.057536 | 0.800 | DeviceScanInitKernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 3 | kernel:4037 | 6.069568 | 2.912 | DeviceScanKernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 4 | kernel:4038 | 6.098560 | 0.928 | vectorized_elementwise_kernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 5 | kernel:4039 | 6.114272 | 0.672 | DeviceScanInitKernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 6 | kernel:4040 | 6.122080 | 3.680 | DeviceScanKernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 7 | kernel:4041 | 6.136096 | 70.784 | permute_2D_data_kernel | KJT feature-order permute | ShardedEmbeddingCollection -> KeyedJaggedTensor | [torchrec/sparse/jagged_tensor.py:2899](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L2899) |
| 8 | kernel:4042 | 6.247904 | 0.704 | vectorized_elementwise_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 9 | kernel:4043 | 6.267520 | 0.800 | DeviceScanInitKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 10 | kernel:4044 | 6.274976 | 3.328 | DeviceScanKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 11 | kernel:4045 | 6.332160 | 503.776 | linearize_index_wo_infos_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 12 | kernel:4057 | 6.836736 | 66.176 | elementwise_kernel_with_index | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 13 | memset:269 | 6.905728 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 14 | memset:270 | 6.909728 | 1.856 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 15 | kernel:4058 | 6.912256 | 24.960 | DeviceRadixSortHistogramKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 16 | kernel:4059 | 6.937888 | 1.376 | DeviceRadixSortExclusiveSumKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 17 | memset:271 | 6.940256 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 18 | kernel:4060 | 6.942624 | 82.112 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 19 | memset:272 | 7.025824 | 1.440 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 20 | kernel:4061 | 7.028352 | 79.104 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 21 | memset:273 | 7.108416 | 1.632 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 22 | kernel:4062 | 7.111040 | 75.008 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 23 | memset:274 | 7.186880 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 24 | kernel:4063 | 7.189184 | 71.552 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 25 | memset:275 | 7.261696 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 26 | kernel:4065 | 7.264224 | 65.312 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 27 | memset:278 | 7.330656 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 28 | kernel:4067 | 7.333152 | 66.048 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 29 | memset:280 | 7.400192 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 30 | kernel:4070 | 7.402432 | 63.840 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 31 | memset:282 | 7.467104 | 1.408 | cudaMemset | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 32 | kernel:4072 | 7.469312 | 64.096 | DeviceRadixSortOnesweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 33 | kernel:4074 | 7.534400 | 35.264 | adjacent_difference_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 34 | kernel:4075 | 7.570752 | 1.632 | DeviceScanInitKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 35 | kernel:4076 | 7.573504 | 20.928 | DeviceScanKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 36 | kernel:4078 | 7.595520 | 68.128 | scatter_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 37 | kernel:4080 | 7.664576 | 1.120 | DeviceCompactInitKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 38 | kernel:4081 | 7.666720 | 28.704 | DeviceSelectSweepKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 39 | memcpy:233 | 7.697376 | 3.680 | cudaMemcpyDeviceToHost | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 40 | kernel:4083 | 7.748160 | 98.112 | delinearize_unique_index_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 41 | kernel:4085 | 7.847072 | 1.280 | vectorized_elementwise_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 42 | kernel:4086 | 7.849184 | 1108.544 | unique_indices_length_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 43 | kernel:4097 | 8.958688 | 0.992 | vectorized_elementwise_kernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 44 | kernel:4098 | 8.960768 | 0.800 | DeviceScanInitKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 45 | kernel:4099 | 8.962496 | 3.840 | DeviceScanKernel | jagged_unique_indices (linearize/sort/unique/delinearize/reverse) | ShardedEmbeddingCollection._dedup_indices | [torchrec/distributed/embedding.py:1421](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding.py#L1421) |
| 46 | kernel:4100 | 8.967136 | 1.184 | vectorized_elementwise_kernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 47 | kernel:4101 | 8.968992 | 0.896 | DeviceScanInitKernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 48 | kernel:4102 | 8.970560 | 2.880 | DeviceScanKernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 49 | kernel:4103 | 8.973952 | 8.096 | _block_bucketize_sparse_features_cuda_kernel1 | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 50 | kernel:4104 | 8.982688 | 0.544 | DeviceScanInitKernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 51 | kernel:4105 | 8.984000 | 4.224 | DeviceScanKernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 52 | kernel:4106 | 8.988992 | 14.592 | _block_bucketize_sequence_sparse_features_cuda_kernel2 | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 53 | kernel:4107 | 9.004352 | 4.768 | reduce_kernel | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 54 | memcpy:237 | 9.012192 | 2.464 | cudaMemcpyDeviceToHost | row-wise block bucketize + output split sizes | RwSparseFeaturesDist | [torchrec/distributed/embedding_sharding.py:312](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/embedding_sharding.py#L312) |
| 55 | memcpy:238 | 9.101504 | 0.768 | cudaMemcpyHostToDevice | KJT splits metadata staging + AllToAll | KJTAllToAll -> SplitsAllToAllAwaitable | [torchrec/distributed/dist_data.py:525](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L525) |
| 56 | memcpy:239 | 9.133504 | 0.768 | cudaMemcpyHostToDevice | KJT splits metadata staging + AllToAll | KJTAllToAll -> SplitsAllToAllAwaitable | [torchrec/distributed/dist_data.py:525](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L525) |
| 57 | memcpy:240 | 9.162528 | 0.736 | cudaMemcpyHostToDevice | KJT splits metadata staging + AllToAll | KJTAllToAll -> SplitsAllToAllAwaitable | [torchrec/distributed/dist_data.py:525](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L525) |
| 58 | kernel:4108 | 9.245728 | 1.280 | CatArrayBatchedCopy | KJT splits metadata staging + AllToAll | KJTAllToAll -> SplitsAllToAllAwaitable | [torchrec/distributed/dist_data.py:525](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L525) |
| 59 | kernel:4120 | 9.460864 | 4868.416 | ncclDevKernel_SendRecv | KJT splits metadata staging + AllToAll | KJTAllToAll -> SplitsAllToAllAwaitable | [torchrec/distributed/dist_data.py:525](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L525) |
| 60 | memcpy:258 | 14.332576 | 1.344 | cudaMemcpyDeviceToHost | wait splits; launch lengths and values AllToAll | KJTAllToAllSplitsAwaitable -> KJTAllToAllTensorsAwaitable | [torchrec/distributed/dist_data.py:766](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L766) |
| 61 | memcpy:261 | 14.471136 | 0.768 | cudaMemcpyHostToDevice | wait splits; launch lengths and values AllToAll | KJTAllToAllSplitsAwaitable -> KJTAllToAllTensorsAwaitable | [torchrec/distributed/dist_data.py:766](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L766) |
| 62 | kernel:4218 | 14.663968 | 174.816 | ncclDevKernel_SendRecv | wait splits; launch lengths and values AllToAll | KJTAllToAllSplitsAwaitable -> KJTAllToAllTensorsAwaitable | [torchrec/distributed/dist_data.py:766](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L766) |
| 63 | kernel:4221 | 14.839648 | 176.480 | ncclDevKernel_SendRecv | wait splits; launch lengths and values AllToAll | KJTAllToAllSplitsAwaitable -> KJTAllToAllTensorsAwaitable | [torchrec/distributed/dist_data.py:766](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L766) |
| 64 | kernel:4226 | 15.047328 | 2.368 | permute_2D_lengths_kernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 65 | kernel:4230 | 15.076192 | 0.576 | DeviceScanInitKernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 66 | kernel:4231 | 15.085088 | 4.128 | DeviceScanKernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 67 | kernel:4236 | 15.111520 | 0.768 | vectorized_elementwise_kernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 68 | kernel:4239 | 15.126688 | 0.704 | DeviceScanInitKernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 69 | kernel:4240 | 15.133408 | 3.968 | DeviceScanKernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 70 | kernel:4242 | 15.146720 | 12.256 | permute_2D_data_kernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 71 | kernel:4248 | 15.222816 | 3.520 | reduce_kernel | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 72 | memcpy:266 | 15.251040 | 1.664 | cudaMemcpyDeviceToHost | recat received KJT into feature-major order | KJTAllToAllTensorsAwaitable -> KeyedJaggedTensor.dist_init | [torchrec/sparse/jagged_tensor.py:3322](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/sparse/jagged_tensor.py#L3322) |
| 73 | kernel:4259 | 15.432704 | 0.704 | vectorized_elementwise_kernel | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 74 | kernel:4261 | 15.453952 | 0.544 | DeviceScanInitKernel | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 75 | kernel:4262 | 15.462976 | 4.096 | DeviceScanKernel | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 76 | kernel:4267 | 15.559744 | 0.544 | vectorized_elementwise_kernel | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 77 | kernel:4270 | 15.596288 | 16.352 | bounds_check_indices_kernel_v1 | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 78 | kernel:4276 | 15.714944 | 1.504 | vectorized_elementwise_kernel | TBE input offsets + bounds check | GroupedEmbeddingsLookup -> BatchedFusedEmbedding | [torchrec/distributed/batched_embedding_kernel.py:1834](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L1834) |
| 79 | kernel:4281 | 15.922272 | 103.392 | split_embedding_nobag_codegen_forward_unweighted_kernel | FBGEMM split_embedding_nobag forward | SplitTableBatchedEmbeddingBagsCodegen | [torchrec/distributed/batched_embedding_kernel.py:2565](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/batched_embedding_kernel.py#L2565) |
| 80 | kernel:4284 | 16.068672 | 1.376 | invert_permute_kernel | forward recat inversion + split scaling | RwSequenceEmbeddingDist -> SequenceEmbeddingsAllToAll | [torchrec/distributed/dist_data.py:2075](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L2075) |
| 81 | kernel:4287 | 16.128576 | 0.928 | vectorized_elementwise_kernel | forward recat inversion + split scaling | RwSequenceEmbeddingDist -> SequenceEmbeddingsAllToAll | [torchrec/distributed/dist_data.py:2075](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L2075) |
| 82 | kernel:4289 | 16.192544 | 2.048 | vectorized_elementwise_kernel | forward recat inversion + split scaling | RwSequenceEmbeddingDist -> SequenceEmbeddingsAllToAll | [torchrec/distributed/dist_data.py:2075](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L2075) |
| 83 | kernel:4294 | 16.271456 | 2.368 | permute_2D_lengths_kernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 84 | kernel:4296 | 16.295552 | 0.672 | DeviceScanInitKernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 85 | kernel:4298 | 16.304576 | 4.224 | DeviceScanKernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 86 | kernel:4301 | 16.328768 | 0.832 | vectorized_elementwise_kernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 87 | kernel:4304 | 16.342272 | 0.832 | DeviceScanInitKernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 88 | kernel:4305 | 16.350272 | 3.584 | DeviceScanKernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 89 | kernel:4308 | 16.366112 | 250.656 | permute_2D_data_kernel | permute embedding payload into destination-rank order | All2All_Seq_Req | [torchrec/distributed/comm_ops.py:1940](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1940) |
| 90 | kernel:4325 | 16.617568 | 50.336 | vectorized_elementwise_kernel | qcomm FP16 encode (copy + clamp) | All2All_Seq_Req -> QuantizedCommCodec | [torchrec/distributed/comm_ops.py:1970](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1970) |
| 91 | kernel:4327 | 16.668800 | 43.296 | vectorized_elementwise_kernel | qcomm FP16 encode (copy + clamp) | All2All_Seq_Req -> QuantizedCommCodec | [torchrec/distributed/comm_ops.py:1970](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1970) |
| 92 | kernel:4329 | 16.713184 | 401.216 | ncclDevKernel_SendRecv | sequence embedding AllToAll | All2All_Seq_Req -> ProcessGroupNCCL | [torchrec/distributed/comm_ops.py:1993](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L1993) |
| 93 | kernel:4373 | 17.709600 | 140.160 | unrolled_elementwise_kernel | qcomm FP16 decode after AllToAll wait | All2All_Seq_Req_Wait | [torchrec/distributed/comm_ops.py:2061](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/comm_ops.py#L2061) |
| 94 | kernel:4379 | 17.882208 | 84.544 | vectorized_gather_kernel | restore pre-bucketized unique-index order | SequenceEmbeddingsAwaitable | [torchrec/distributed/dist_data.py:1962](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/distributed/dist_data.py#L1962) |
| 95 | kernel:4383 | 17.967552 | 18.720 | unrolled_elementwise_kernel | materialize reverse_indices in index dtype | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 96 | kernel:4385 | 18.001152 | 534.016 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 97 | kernel:4393 | 18.536000 | 532.832 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 98 | kernel:4397 | 19.069632 | 531.584 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 99 | kernel:4401 | 19.602176 | 526.336 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 100 | kernel:4405 | 20.129600 | 527.744 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 101 | kernel:4409 | 20.658816 | 528.992 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 102 | kernel:4413 | 21.188928 | 530.432 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |
| 103 | kernel:4417 | 21.720320 | 532.544 | vectorized_gather_kernel | restore original duplicate positions with reverse_indices | EmbeddingCollectionAwaitable -> construct_jagged_tensors | [torchrec/modules/utils.py:260](https://github.com/pytorch/torchrec/blob/1d87b8f79b7bb1671cb8be3e646e99e835cce610/torchrec/modules/utils.py#L260) |

## Interpretation rules

- `direct-kernel`: the kernel is the named FBGEMM/NCCL operation itself.
- `direct-op`: the activity was correlated to the named PyTorch/FBGEMM op; CUB/ATen kernels are its implementation children.
- `child-kernel`: attribution is to the enclosing op rather than a standalone TorchRec call.
