This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/libr4d/isa/dis.sh
T
Deadcode 7a7707a955 radiance 1.8.0
- video: MiniMax-H3 and FastVideo's FastH3 8-Step V2, a video with its stereo soundtrack from text
  on OpenAI's /v1/videos, block fp8 on two cards
- music: MiniMax-Music3, songs from lyrics and a description on /v1/audio/speech
- speech: Breeze-TTS-2 on /v1/audio/speech and vLLM-Omni's realtime WebSocket
- runtime LoRA adapters beside the base model, picked per request by `model` (baKon, #105)
- several agent streams keep their cached history: --checkpoint-slots auto, the new default, sizes
  the snapshot store by --max-num-seqs (#108)
- the Swift 1.5 27B W4 releases convert and serve: compressed-tensors AWQ and GPTQ int4, AutoRound,
  ModelOpt NVFP4 (#110)
- the image's host tests pass where perf_event_open is refused, as in BuildKit's sandbox (#106)
- plugin ABI 21: out-of-tree plugins must be rebuilt
2026-10-18 11:38:37 +02:00

29 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
# Disassemble ONE kernel out of one translation unit, into $ISA_OUT/one.s.
#
# BUILD=... dis.sh r4d_gemm_fp8a8 gemm_8a8_prefill_kernelILb0E
#
# The pattern is a substring of the MANGLED name, which is how a template instantiation is named:
# res.sh prints those, and the template parameter order is in the kernel declaration. llvm-objdump
# --symbolize-operands prints basic-block labels in the same shape as a real symbol header
# (`0000...45110 <L1201>:`), so the kernel ends at the next header that is not an <Lnnn>.
: "${ROCM:=/opt/rocm}"
: "${BUILD:=build}"
: "${ISA_OUT:=/tmp/r4disa}"
TU="$1"; PAT="$2"
here=$(cd "$(dirname "$0")" && pwd)
O=$(find "$BUILD" -name "$TU.hip.o" | head -1)
[ -n "$O" ] || { echo "dis.sh: no translation unit $TU under $BUILD" >&2; exit 1; }
if [ ! -f "$ISA_OUT/$TU.all.s" ] || [ "$O" -nt "$ISA_OUT/$TU.all.s" ]; then
"$here/co.sh" "$O" >/dev/null || exit 1
"$ROCM/llvm/bin/llvm-objdump" -d --symbolize-operands --no-show-raw-insn \
"$ISA_OUT/$TU.co" > "$ISA_OUT/$TU.all.s"
fi
awk -v pat="$PAT" '
/^[0-9a-f]+ <.*>:$/ { if ($2 !~ /^<L[0-9]+>:$/) ink = (index($0, pat) > 0) }
ink { print }
' "$ISA_OUT/$TU.all.s" > "$ISA_OUT/one.s"
n=$(grep -c " " "$ISA_OUT/one.s")
[ "$n" -gt 0 ] || { echo "dis.sh: no kernel matched $PAT in $TU" >&2; exit 1; }
echo "$ISA_OUT/one.s: $n instructions, $(grep -c '^[0-9a-f]* <L' "$ISA_OUT/one.s") blocks"