| library_name: kernels | |
| license: apache-2.0 | |
| This is a tiny Kernel Hub repro for C++ standard-library runtime crashes in packaged kernels. | |
| It exposes a CPU op that runs: | |
| - `std::regex` include parsing | |
| - `std::ostringstream`/`std::hex` hash formatting | |
| - a simple ReLU copy so the op has a normal tensor path | |
| ## How to use | |
| ```python | |
| from kernels import get_kernel | |
| kernel_module = get_kernel("adarshxs/stdlib-repro", backend="cpu", trust_remote_code=True) | |
| out, digest = kernel_module.relu_and_probe(x, iters=1000) | |
| ``` | |
| ## Available functions | |
| - `DEFAULT_CODE` | |
| - `probe_stdlib` | |
| - `relu_and_probe` | |