Stage independently reviewed native CUDA event profiling
Browse filesTiming-enabled reusable CUDA events bracket full admission launches after H2D and before D2H on the existing explicit stream. Separate device stream-span receipt preserves host wall timings; scheduling and enqueue gaps may be included. Five sources independently reviewed and pinned; 75 CPU tests passed, two GPU tests ignored. Patch ZIP SHA256 d4f14400c57cd0844a7eafbddf46f2311a672b188db578cab61452ca0132374e. Full10000/all four readers/semantic comparison campaign prepared; Linux build, actual device run and speedup are not yet verified. Requires fresh isolated source tree. Full native generator remains priority; reduced smoke was superseded by user clarification 2026-10-01 16:31.
cuda_event_profile_patch_v2_20261003.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4f14400c57cd0844a7eafbddf46f2311a672b188db578cab61452ca0132374e
|
| 3 |
+
size 21724
|
cuda_event_profile_transport_v2_20261003.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema": "cuda_event_patch_transport_v2",
|
| 3 |
+
"zip_sha256": "d4f14400c57cd0844a7eafbddf46f2311a672b188db578cab61452ca0132374e",
|
| 4 |
+
"zip_bytes": 21724,
|
| 5 |
+
"members": [
|
| 6 |
+
{
|
| 7 |
+
"file": "cuda_bank.rs",
|
| 8 |
+
"bytes": 19748,
|
| 9 |
+
"sha256": "033245d229faa1cddb20852be633d87ab26673a1b4a1c2e7e75810e9be83caf4"
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"file": "cuda_event_profile_candidate_20261003.json",
|
| 13 |
+
"bytes": 2158,
|
| 14 |
+
"sha256": "118af1ed9aa55b85ead0b8e42617c115dce98b3aa25a6f2076791b39f7923389"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"file": "cuda_event_profile.rs",
|
| 18 |
+
"bytes": 6175,
|
| 19 |
+
"sha256": "bfdd5d02d502455b5ec2b4de2a6c58019af6cf6e72987bc1600f6daf80da5610"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"file": "CUDA_EVENT_SOURCE_REVIEW_20261003.json",
|
| 23 |
+
"bytes": 1412,
|
| 24 |
+
"sha256": "91420bbdeda494718bfc032c20025dd4c1db17059df6373aaa96522ac2ecd4a2"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"file": "generate_full_native_train.rs",
|
| 28 |
+
"bytes": 16579,
|
| 29 |
+
"sha256": "c69ad95a8fed81cbefaa2541d12f7e220f8721cbd23347cd231cc4870ddcc73b"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"file": "INTEGRATION_CONTRACT.json",
|
| 33 |
+
"bytes": 1891,
|
| 34 |
+
"sha256": "85dddfbcf8cddb20c23122123aa561a323c5ca4eeed0819cfbfb1b23e30b4d80"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"file": "lib.rs",
|
| 38 |
+
"bytes": 9591,
|
| 39 |
+
"sha256": "ac77e170bc5093c08adeb2c2ed99fe0147263273935f47870c9be17c6b8b8583"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"file": "native_stage_profile.rs",
|
| 43 |
+
"bytes": 5580,
|
| 44 |
+
"sha256": "b1d7dd6d3c7e77a9d295a9838deb2ef16eb50c95a541ccbce81293d24f8bc18f"
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"all_payloads_verified": true,
|
| 48 |
+
"remote_uploaded": false,
|
| 49 |
+
"linux_build_verified": false,
|
| 50 |
+
"actual_gpu_run_verified": false
|
| 51 |
+
}
|
molab_cuda_events_full_20261003.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Foreground-only full10000 CUDA event campaign. Requires separately verified Linux build and source/runtime pins.
|
| 3 |
+
set -euo pipefail
|
| 4 |
+
base=/marimo/native_v2_reviewed_20261002/native_generator
|
| 5 |
+
original=/marimo/native_v2_reviewed_20261002
|
| 6 |
+
cand=/marimo/native_cuda_events_20261003
|
| 7 |
+
out=/marimo/full_v2_cuda_events_20261003
|
| 8 |
+
runtime=/usr/local/lib/python3.13/site-packages/nvidia/cu13/lib/libcudart.so.13
|
| 9 |
+
proof=$original/bank_reference/full_compact_bank_verification_20261002.json
|
| 10 |
+
bank=/marimo/full_compact_bank_20261002
|
| 11 |
+
kernel=$base/build/libfrontier_full_bank_sha256_prefix.so
|
| 12 |
+
test ! -e "$out"
|
| 13 |
+
test -z "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)"
|
| 14 |
+
mkdir "$out"
|
| 15 |
+
trap 'result=$?; printf "%s\n" "$result" > "$out/wrapper_exit.txt"' EXIT
|
| 16 |
+
trap 'exit 143' TERM
|
| 17 |
+
trap 'exit 130' INT
|
| 18 |
+
trap 'exit 129' HUP
|
| 19 |
+
echo CUDA_EVENTS_FULL_WRAPPER_PID=$$
|
| 20 |
+
cd "$base"
|
| 21 |
+
sha256sum -c SHA256SUMS > "$out/original_source_pins.log" 2>&1
|
| 22 |
+
sha256sum -c build/runtime_SHA256SUMS
|
| 23 |
+
sha256sum -c "$cand/runtime_SHA256SUMS"
|
| 24 |
+
sha256sum -c "$cand/event_source_SHA256SUMS"
|
| 25 |
+
printf '%s %s\n' 96c42e418cec19054186b9429c321603cc190bf26a18104e19408117a2a817b0 "$runtime" | sha256sum -c -
|
| 26 |
+
nvidia-smi --query-gpu=name,driver_version,memory.total,temperature.gpu,pstate,utilization.gpu,clocks.sm,clocks.mem --format=csv > "$out/gpu_before.csv"
|
| 27 |
+
date -u +%FT%TZ > "$out/wall_started_utc.txt"
|
| 28 |
+
"$cand/build/release/generate-full-native-train" "$out/train.sqlite" "$bank" "$proof" "$original" "$base/build/libfrontier_general.so" "$base/build/libfrontier_shear.so" 0 "$out/epoch0.json" "$runtime" "$base/build/libfrontier_gf2_cuda.so" "$kernel" prefix 2>&1 | tee "$out/generation.log" | awk '/"phase":"committed_and_reader_admitted"/{roots++;if(roots%100==0){print;fflush();}next} {if(length($0)<500){print;fflush();}}'
|
| 29 |
+
date -u +%FT%TZ > "$out/wall_finished_utc.txt"
|
| 30 |
+
nvidia-smi --query-gpu=name,driver_version,memory.total,temperature.gpu,pstate,utilization.gpu,clocks.sm,clocks.mem --format=csv > "$out/gpu_after.csv"
|
| 31 |
+
sha256sum -c "$cand/runtime_SHA256SUMS"
|
| 32 |
+
sha256sum -c "$cand/event_source_SHA256SUMS"
|
| 33 |
+
sha256sum -c build/runtime_SHA256SUMS
|
| 34 |
+
printf '%s %s\n' 96c42e418cec19054186b9429c321603cc190bf26a18104e19408117a2a817b0 "$runtime" | sha256sum -c -
|
| 35 |
+
"$cand/build/release/verify-full-train-reader-v2" "$out/train.sqlite" "$bank" "$proof" "$original" "$runtime" "$kernel" "$out/reader_modes.json" prefix > "$out/reader_modes.log" 2>&1
|
| 36 |
+
"$cand/build/release/compare-full-train-v2" /marimo/full_v2_prefix_20261003/train.sqlite "$out/train.sqlite" "$out/matched_comparison.json" > "$out/matched_comparison.log" 2>&1
|
| 37 |
+
sha256sum -c "$cand/runtime_SHA256SUMS"
|
| 38 |
+
sha256sum -c "$cand/event_source_SHA256SUMS"
|
| 39 |
+
sha256sum -c build/runtime_SHA256SUMS
|
| 40 |
+
printf '%s %s\n' 96c42e418cec19054186b9429c321603cc190bf26a18104e19408117a2a817b0 "$runtime" | sha256sum -c -
|
| 41 |
+
echo CUDA_EVENTS_FULL_COMPLETED
|