MCPcopy Create free account

hub / github.com/NVIDIA/SOL-ExecBench / functions

Functions597 in github.com/NVIDIA/SOL-ExecBench

↓ 58 callersFunctioncompute_error_stats
Compute numerical error between *output* and *reference*. Returns ``(correctness, exceeds)`` where *correctness* is a :class:`Correctness` ca
src/sol_execbench/core/bench/correctness.py:91
↓ 57 callersFunction_spec
( max_atol: float = 1e-5, max_rtol: float = 1e-5, required_matched_ratio: float = 1.0, max_err
tests/sol_execbench/core/bench/test_correctness.py:23
↓ 19 callersFunction_make_packager
( tmp_path: Path, definition: Definition, workloads: list[Workload], solution: Solution, c
tests/sol_execbench/driver/test_problem_packager.py:111
↓ 18 callersFunction_exec_build_ext
Write solution.json and execute the build_ext template in *cwd* with ext.load mocked. Returns the ``ext.load`` mock so callers can inspect how it
tests/sol_execbench/driver/test_build_ext.py:63
↓ 18 callersMethodget_unique_args
Copy source data into the next pool offset and return views. Returns inputs followed by zero-filled outputs (for DPS kernels). Each c
src/sol_execbench/core/bench/io.py:620
↓ 16 callersFunctionbench_gpu_time_with_cupti
Benchmark GPU time using CUPTI activity tracing for precise kernel timing. CUPTI (CUDA Profiling Tools Interface) provides hardware-level pr
src/sol_execbench/core/bench/timing.py:157
↓ 16 callersFunctionbench_time_with_cuda_events
Benchmark the runtime of the provided function. Derived from triton.testing.do_bench (MIT licence), with fixes from sol-bench: explicit synch
src/sol_execbench/core/bench/timing.py:350
↓ 15 callersFunction_generate_heuristic_tensor
Generate a tensor using heuristics based on the input name. Returns None if no heuristic matches, falling back to _rand_tensor.
src/sol_execbench/core/bench/io.py:222
↓ 13 callersFunctiontime_runnable
Time the execution of a callable using CUDA events. Creates a :class:`ShiftingMemoryPoolAllocator` from *inputs* and *outputs* so each timed
src/sol_execbench/core/bench/timing.py:418
↓ 12 callersFunction_make
(**overrides)
tests/sol_execbench/core/data/test_definition.py:26
↓ 12 callersFunction_rand_tensor
( shape: List[int], dtype: torch.dtype, device: torch.device )
src/sol_execbench/core/bench/io.py:70
↓ 12 callersFunctionverify_clocks
Verify current GPU/DRAM clocks match expected frequencies via nvidia-smi. Queries all GPUs and checks that current frequencies are within *tolera
src/sol_execbench/core/bench/clock_lock.py:145
↓ 11 callersFunction_emit
Write one Trace as strictly valid JSON to the real stdout. Uses allow_nan=False so that any unexpected NaN/Inf in the trace dict raises Value
src/sol_execbench/driver/templates/eval_driver.py:260
↓ 11 callersFunction_make_eval
( status, device, log_path, *, correctness=None, performance=None, extra_msg=None )
src/sol_execbench/driver/templates/eval_driver.py:317
↓ 11 callersFunction_run_eval_driver
Write all staging files and run eval_driver.py in a subprocess. Args: tmp_path: Temporary directory to use as the staging directory.
tests/sol_execbench/driver/test_eval_driver.py:105
↓ 10 callersMethod_make_smi_result
(self, stdout: str, returncode: int = 0)
tests/sol_execbench/core/bench/test_clock_lock.py:271
↓ 10 callersMethodcompile
Stage compilation files and return (command, artifact_path). Writes build_ext.py, solution.json, and C++/CUDA source files to output_
src/sol_execbench/driver/problem_packager.py:163
↓ 10 callersFunctionlock_clocks
Lock GPU and DRAM clocks for the given device. Looks up the device in the preset table, then calls ``sudo nvidia-smi -lgc`` and ``sudo nvidia
src/sol_execbench/core/bench/clock_lock.py:70
↓ 9 callersFunction_make_definition
(**overrides)
tests/sol_execbench/core/bench/test_io.py:633
↓ 9 callersFunction_make_spec
(**overrides)
tests/sol_execbench/core/data/test_solution.py:25
↓ 9 callersFunction_resolve_blob_path
Resolve a relative path against blob roots, handling partial overlap. Tries ``root / rel`` first, then progressively strips leading components
src/sol_execbench/core/bench/io.py:296
↓ 9 callersMethodexecute
Stage execution files and return the command to run. Writes eval_driver.py, definition.json, workload.jsonl, solution.json to output_
src/sol_execbench/driver/problem_packager.py:191
↓ 9 callersMethodget_resolved_axes_values
Get concrete axis values from variable axis values. Resolves all expressions. Parameters ---------- var_axes_values : dict[st
src/sol_execbench/core/data/definition.py:446
↓ 9 callersFunctionset_seed
Set random seeds for reproducibility across Python, PyTorch CPU and CUDA.
src/sol_execbench/core/bench/correctness.py:29
↓ 8 callersFunction_summarize_statistics
Summarize timing statistics based on return mode.
src/sol_execbench/core/bench/timing.py:47
↓ 8 callersMethodconvert_stdout_to_traces
Parse JSONL stdout from eval_driver.py into Trace objects. Each line starting with '{' is parsed as a Trace JSON object. Non-JSON lin
src/sol_execbench/driver/problem_packager.py:216
↓ 8 callersFunctiondtype_str_to_torch_dtype
(dtype_str: str)
src/sol_execbench/core/data/dtypes.py:78
↓ 8 callersFunctionget_clock_preset
Get the clock preset for a given GPU device name. Returns None if the device is not in the preset table. Parameters ---------- devic
src/sol_execbench/core/bench/config/device_config.py:39
↓ 7 callersMethodget_scalar_inputs
(self)
src/sol_execbench/core/data/workload.py:138
↓ 7 callersFunctionnormalize_outputs
( out: Any, *, device: torch.device, output_names: List[str], output_dtypes: Dict[str, tor
src/sol_execbench/core/bench/io.py:447
↓ 7 callersFunctionsnapshot_critical_functions
Capture ``id()`` of named functions from a namespace. Call this **before** user code is imported. Pass the returned dict to :func:`check_eva
src/sol_execbench/core/bench/reward_hack.py:105
↓ 6 callersFunction_is_causal_attention_mask
( name: str, shape: tuple[int, ...], description: Optional[str] )
src/sol_execbench/core/bench/io.py:154
↓ 6 callersMethod_patch_verify_and_sleep
Return a combined patch context that mocks verify_clocks → True and time.sleep → noop.
tests/sol_execbench/core/bench/test_clock_lock.py:92
↓ 6 callersFunction_wkl
(**inputs)
tests/sol_execbench/core/data/test_workload.py:22
↓ 6 callersFunctioncheck_eval_integrity
Verify that critical eval-driver functions have not been replaced. Compares the current ``id()`` of each snapshotted name against the value c
src/sol_execbench/core/bench/reward_hack.py:121
↓ 6 callersFunctioncheck_lazy_outputs
Detect lazy/proxy tensors in the user output. Uses strict ``type()`` equality — not ``isinstance`` — so any subclass (including ``FakeTensor`
src/sol_execbench/core/bench/reward_hack.py:89
↓ 6 callersFunctionfn
(_)
src/sol_execbench/core/bench/timing.py:244
↓ 6 callersFunctiongen_inputs
Generate input tensors in definition order. Returns a list of input values (tensors or scalars) in the same order as definition.inputs.
src/sol_execbench/core/bench/io.py:372
↓ 5 callersFunction_is_binary_mask
(name: str, description: Optional[str])
src/sol_execbench/core/bench/io.py:170
↓ 5 callersFunctionload_safetensors
Load safetensors inputs for a workload. Safetensors blobs are resolved from the staging directory (passed via ``blob_roots``). The first roo
src/sol_execbench/core/bench/io.py:312
↓ 4 callersFunction_clear_cache
Clear the cache buffer by zeroing it.
src/sol_execbench/core/bench/timing.py:68
↓ 4 callersFunction_is_softmax_output
(name: str, description: Optional[str])
src/sol_execbench/core/bench/io.py:210
↓ 4 callersFunction_is_weight_matrix
(name: str, shape: tuple[int, ...])
src/sol_execbench/core/bench/io.py:108
↓ 4 callersFunction_make_eval_with_status
Mirrors the _make_eval wrapper from eval_driver.py.
tests/sol_execbench/core/bench/test_make_eval_clock_warn.py:32
↓ 4 callersMethod_make_trace_json
(self, uuid: str = "wkl-0001")
tests/sol_execbench/driver/test_problem_packager.py:279
↓ 4 callersFunction_reward_hack_check
Run a reward-hack check; emit REWARD_HACK trace and return True if detected.
src/sol_execbench/driver/templates/eval_driver.py:274
↓ 4 callersFunctionare_clocks_locked
Check whether clocks were locked at startup. Reads the ``SOL_EXECBENCH_CLOCKS_LOCKED`` environment variable set by the Docker entrypoint or s
src/sol_execbench/core/bench/clock_lock.py:234
↓ 4 callersFunctionbuild_driver
Return the eval_driver.py template source.
tests/sol_execbench/driver/test_eval_driver.py:45
↓ 4 callersFunctioncheck_thread_injection
Detect if user code spawned background threads. Capture ``threading.active_count()`` before and after the user call and pass both values here
src/sol_execbench/core/bench/reward_hack.py:73
↓ 4 callersFunctionto_tensor
(name: str, v: Any)
src/sol_execbench/core/bench/io.py:454
↓ 3 callersFunction_cast_to_fp4x2
Quantize a tensor to FP4 E2M1 and pack into uint8 (2 FP4 values per byte). Args: x: Input tensor of shape (..., cols) with values in rang
src/sol_execbench/core/bench/io.py:34
↓ 3 callersFunction_gpu_sm_version
Return the SM version of the current GPU (e.g. 90, 100), or 0 if unavailable.
tests/conftest.py:22
↓ 3 callersFunction_is_norm_bias
(name: str)
src/sol_execbench/core/bench/io.py:141
↓ 3 callersFunction_is_norm_weight
(name: str)
src/sol_execbench/core/bench/io.py:128
↓ 3 callersFunction_is_positive_tensor
(name: str, description: Optional[str])
src/sol_execbench/core/bench/io.py:194
↓ 3 callersFunction_is_rope_cos_sin
(name: str)
src/sol_execbench/core/bench/io.py:190
↓ 3 callersFunction_is_ssm_decay
(name: str)
src/sol_execbench/core/bench/io.py:206
↓ 3 callersFunction_make_workload
(**overrides)
tests/sol_execbench/core/bench/test_io.py:646
↓ 3 callersFunction_run_subprocess
Run a command in the given directory and return the result.
tests/sol_execbench/test_e2e.py:157
↓ 3 callersFunctionclone_args
Clone tensor arguments to prevent cross-iteration data contamination. Returns fresh copies of all tensor arguments so each benchmark iteration
src/sol_execbench/core/bench/timing.py:73
↓ 3 callersFunctiondtype_str_to_python_dtype
(dtype_str: str)
src/sol_execbench/core/data/dtypes.py:47
↓ 3 callersFunctionprobe_clock_lock_available
Probe whether GPU clock locking is available via ``sudo nvidia-smi``. Runs ``sudo -n nvidia-smi -lgc 1`` and immediately resets the lock. Return
src/sol_execbench/core/bench/clock_lock.py:50
↓ 3 callersFunctionunlock_clocks
Reset GPU and DRAM clocks. Best-effort — errors are logged but not raised.
src/sol_execbench/core/bench/clock_lock.py:219
↓ 2 callersFunction_call_and_collect_outputs
Call fn in the correct calling convention and return a list of output tensors. DPS=True (destination-passing style): fn(*inputs, *pre_all
src/sol_execbench/driver/templates/eval_driver.py:53
↓ 2 callersFunction_get_empty_cache_for_benchmark
Create a 256 MB buffer for clearing L2 cache before benchmark runs.
src/sol_execbench/core/bench/timing.py:61
↓ 2 callersMethod_get_shapes
Get concrete tensor shapes given variable axis values. Parameters ---------- tensors : Iterable[TensorSpec] List
src/sol_execbench/core/data/definition.py:465
↓ 2 callersFunction_infer_dps
Infer destination-passing style by checking the ``run()`` signature. If the last parameter of ``run()`` matches the last output name in the d
scripts/run_dataset.py:85
↓ 2 callersMethod_make_mock_event
Create a mock CUDA Event class for testing do_bench without GPU.
tests/sol_execbench/core/bench/test_timing.py:94
↓ 2 callersMethod_make_pool_entry
( cls, tensor: torch.Tensor, total_iterations: int )
src/sol_execbench/core/bench/io.py:588
↓ 2 callersFunction_run_subprocess
Run a command in the given directory and return the result.
tests/examples/test_examples.py:169
↓ 2 callersFunctionallocate_outputs
Allocate output tensors based on definition and resolved axis values. Parameters ---------- definition : Definition The kernel de
src/sol_execbench/core/bench/io.py:489
↓ 2 callersFunctioncheck_monkey_patch
Detect if torch.cuda.Event.elapsed_time has been patched. Compares the current function identity against the address captured at module load
src/sol_execbench/core/bench/reward_hack.py:48
↓ 2 callersFunctioncheck_tensor
Helper function to check common tensor properties
examples/cuda_cpp/rmsnorm/main.cpp:7
↓ 2 callersMethodget_input_shapes
Get concrete input shapes given variable axis values. Parameters ---------- var_values : Optional[dict[str, int]], default=No
src/sol_execbench/core/data/definition.py:509
↓ 2 callersFunctioninspect_traces
Inspect traces for correctness. Returns a summary dict with pass/fail counts and per-workload latencies.
scripts/run_dataset.py:273
↓ 2 callersFunctionis_dtype_integer
Check if dtype is an integer or boolean type.
src/sol_execbench/core/data/dtypes.py:107
↓ 2 callersMethodis_successful
Check if the benchmark execution was successful. Returns ------- bool True if this is a regular trace with succes
src/sol_execbench/core/data/trace.py:207
↓ 2 callersFunctionmake_eval
( status: EvaluationStatus, device: str, log_path: Optional[str], correctness: Optional[Correc
src/sol_execbench/core/bench/utils.py:61
↓ 2 callersMethodrecord
(self)
tests/sol_execbench/core/bench/test_timing.py:101
↓ 2 callersFunctionsetup
()
src/sol_execbench/core/bench/timing.py:247
↓ 1 callersFunction_add_kernel
(gA, gB, gC, cC, shape, thr_layout, val_layout)
tests/docker/dependencies/_cutedsl_kernels.py:28
↓ 1 callersFunction_add_kernel
(gA, gB, gC, cC, shape, thr_layout, val_layout)
examples/cute_dsl/jamba_attn_proj/kernel.py:10
↓ 1 callersFunction_build_definition
Assemble a definition.json dict from a dataset row.
scripts/download_solexecbench.py:24
↓ 1 callersMethod_compute_hash
Compute a deterministic hash of the solution content.
src/sol_execbench/core/data/solution.py:330
↓ 1 callersFunction_demangle
(name: str)
src/sol_execbench/core/bench/timing.py:92
↓ 1 callersFunction_get_dtype_str_to_python_dtype
Get dtype string to Python type mapping (cached).
src/sol_execbench/core/data/dtypes.py:28
↓ 1 callersFunction_get_dtype_str_to_torch_dtype
Lazily build dtype string to torch dtype mapping.
src/sol_execbench/core/data/dtypes.py:57
↓ 1 callersFunction_get_integer_dtypes
Get frozenset of integer and boolean dtypes (cached).
src/sol_execbench/core/data/dtypes.py:88
↓ 1 callersFunction_get_local_sm
Detect the local GPU's SM version via nvidia-smi.
src/sol_execbench/driver/problem_packager.py:52
↓ 1 callersMethod_inject_gencode_flags
Auto-inject -gencode flags when no explicit arch flag is set. Blackwell targets get sm_100a (required for tcgen05/TMEM instructions).
src/sol_execbench/driver/problem_packager.py:120
↓ 1 callersFunction_load_config
(path: Optional[Path])
src/sol_execbench/cli/main.py:77
↓ 1 callersFunction_load_definition
(path: Path)
src/sol_execbench/cli/main.py:52
↓ 1 callersFunction_load_evil_sample
Load evil solution with kernel content inlined from the sample directory.
tests/sol_execbench/test_e2e.py:148
↓ 1 callersFunction_load_example
Load definition, solution, and workloads from an example directory.
tests/examples/test_examples.py:153
↓ 1 callersFunction_load_problem
Load definition dict + workload dicts from staging directory.
src/sol_execbench/driver/templates/eval_driver.py:90
↓ 1 callersFunction_load_sample
Load definition, solution, and workloads from a self-contained sample directory.
tests/sol_execbench/test_e2e.py:132
↓ 1 callersFunction_load_solution
(path: Path)
src/sol_execbench/cli/main.py:65
↓ 1 callersFunction_load_workloads
(path: Path)
src/sol_execbench/cli/main.py:56
↓ 1 callersFunction_make_solution_json
Create a minimal valid solution JSON string with given compile_options.
tests/sol_execbench/driver/test_build_ext.py:45
↓ 1 callersFunction_print_traces_table
Print a rich table summarizing evaluation traces.
src/sol_execbench/cli/main.py:103
next →1–100 of 597, ranked by callers