Skip to content
KernelIndex
Search⌘K

submission 70989

Jaber · python · License unknown

Use it

Vendorable · source mirrored · license unknownView source →

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

submission.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-sort-v2-70989?include=source"
interfacepython
Compatibility
measured onNVIDIA H100
declared hardwareNVIDIA H100
architecturessm_90
dtypesfp32

Benchmark evidence

1 measurement across 1 GPU, fastest first.

Operation / workload
Hardware
Latency
Rank
Observed
Sortsuite of 5 cases
NVIDIA H100
6.60ms
#16 of 26
2025-11-11

Reported · How evidence levels are derived →

Source and license

sourceavailable
revision digestsha256:ef9230fb6154ba3feb7c1d501fad20a0ea6af84feba621f495a22fd1d12d372f
license declaredunknown
license concludedunknown
authorsJaber
imported2026-08-15

Kernel source

submission.py21 lines
import torch

try:
    import cupy as cp
    HAS_CUPY = True
except ImportError:
    HAS_CUPY = False


def custom_kernel(data):
    input_tensor, output_tensor = data

    if HAS_CUPY:
        cupy_input = cp.from_dlpack(input_tensor)
        cupy_sorted = cp.sort(cupy_input)
        output_tensor.copy_(torch.from_dlpack(cupy_sorted))
    else:
        output_tensor[...] = torch.sort(input_tensor)[0]

    return output_tensor

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

Best evidence level for this revision: reported

JSON