submission 545032
rajesh0042 · python · License unknown
Use it
Vendorable · source mirrored · license unknownView source →
No package. Vendor the mirrored source: 11 lines, June 9 Researcher Reciprocity License v1.0.
sort_v2.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-sort-v2-545032?include=source"interfacepython
Compatibility
measured onNVIDIA A100
declared hardwareNVIDIA A100
architecturessm_80
dtypesfp32
Benchmark evidence
1 measurement across 1 GPU, fastest first.
Reported · How evidence levels are derived →
Source and license
sourceavailable
revision digestsha256:96c7b2a1ce4ecfb5c5e5a8d5f51bb0bcae344280014f8489af0070775e4764f8
license declaredunknown
license concludedunknown
authorsrajesh0042
imported2026-08-15
Kernel source
sort_v2.py11 lines
import os
os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"
import torch
from task import input_t, output_t
def custom_kernel(data: input_t) -> output_t:
data, output = data
output[...] = torch.sort(data)[0]
return output
Source code from GPU Mode and the KernelBot dataset · June 9 Researcher Reciprocity License v1.0
Changes from previous submission
Against this author's previous submission submission 544990.
⋯ 5 unchanged linesdef custom_kernel(data: input_t) -> output_t:data, output = data- torch.sort(data, out=(output, torch.empty_like(data, dtype=torch.long)))+ output[...] = torch.sort(data)[0]return output
Best evidence level for this revision: reported
JSON