MCPcopy Create free account
hub / github.com/SemiAnalysisAI/FuzzX / worker_loop

Function worker_loop

ptx/crates/fuzzx-diff/src/main.rs:2302–2367  ·  view source on GitHub ↗

One worker thread: owns a CUDA context on `gpu` and a single pair of reusable in/out buffers. Loops, pulling seeds from `stats.next_seed`, until either `max_iters` or `stats.stop_at_iter` is hit (we hit the stop sentinel by setting it to 0 on Ctrl-C — see main).

(
    worker_id: usize,
    gpu: i32,
    cfg: &Config,
    arch: &str,
    stats: &Stats,
    log_lock: &Mutex<()>,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 11

input_lenFunction · 0.85
output_lenFunction · 0.85
bytes_from_seedFunction · 0.85
input_for_seedFunction · 0.85
compileFunction · 0.85
save_divergenceFunction · 0.85
alloc_buffersMethod · 0.80
launch_withMethod · 0.80
divergedMethod · 0.80
matchesMethod · 0.80

Tested by

no test coverage detected