Skip to content
KernelIndex
Search⌘K

submission 544992

rajesh0042 · python · License unknown

Use it

Vendorable · source mirrored · license unknownView source →

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

grayscale_simple.py
curl "https://kernelindex.com/api/v1/implementations/kernelbot-grayscale-v2-544992?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
RGB to grayscalesuite of 6 cases
NVIDIA H100
6.06ms
#32 of 36
2026-03-13

Reported · How evidence levels are derived →

Source and license

sourceavailable
revision digestsha256:83264e6b02af876753b7ab50a7e9f5aa5f4df49d7820012b7446ca8289cbc06a
license declaredunknown
license concludedunknown
authorsrajesh0042
imported2026-08-15

Kernel source

grayscale_simple.py12 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
    weights = torch.tensor([0.2989, 0.5870, 0.1140], device=data.device, dtype=data.dtype)
    torch.sum(data * weights, dim=-1, out=output)
    return output

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

Best evidence level for this revision: reported

JSON