Skip to content

Instantly share code, notes, and snippets.

View JunityZz's full-sized avatar
🏠
Working from home

Junity JunityZz

🏠
Working from home
  • Perchy, LLC
  • Dallas, United States
  • 13:23 (UTC -04:00)
View GitHub Profile
@JunityZz
JunityZz / gpu_fp8_fp16_bandwidth_bench.sh
Created May 20, 2026 07:10
H200/Hopper FP16 FP8 GEMM and HBM bandwidth benchmark
#!/usr/bin/env bash
set -euo pipefail
OUT_DIR="${OUT_DIR:-$(pwd)}"
mkdir -p "$OUT_DIR"
PY_BENCH="$OUT_DIR/gpu_fp8_fp16_bandwidth_bench.py"
cat > "$PY_BENCH" <<'PY'
import json
import math