Skip to content
KernelIndex
Search⌘K

submission 512300

burtenshaw · python · License unknown

Use it

Vendorable · source mirrored · license unknownView source →

No package. Vendor the mirrored source: 22 lines, June 9 Researcher Reciprocity License v1.0.

submission_ref.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-sort-v2-512300?include=source"
interfacepython
Compatibility
measured onNVIDIA A100
declared hardwareNVIDIA A100
architecturessm_80
dtypesfp32

Benchmark evidence

1 measurement across 1 GPU, fastest first.

Operation / workload
Hardware
Latency
Rank
Observed
Sortsuite of 5 cases
NVIDIA A100
13.9ms
#21 of 28
2026-03-02

Reported · How evidence levels are derived →

Source and license

sourceavailable
revision digestsha256:99d14e97aea3fb3d2b857b2a2ecb4f50d8b800a70a32a365976e8572a05babaf
license declaredunknown
license concludedunknown
authorsburtenshaw
imported2026-08-15

Kernel source

submission_ref.py22 lines
#!POPCORN leaderboard sort_v2
#!POPCORN gpu A100

import torch
from task import input_t, output_t


def _custom_kernel(data: input_t) -> output_t:
    """
    Implements sort using PyTorch.
    Args:
        data: Input tensor to be sorted
    Returns:
        Sorted tensor
    """
    data, output = data
    output[...] = torch.sort(data)[0]
    return output


custom_kernel = torch.compile(_custom_kernel, mode="reduce-overhead")

Source code from GPU Mode and the KernelBot dataset · June 9 Researcher Reciprocity License v1.0

Best evidence level for this revision: reported

JSON