The merge of upstream main (99b4097) left 28 migrated copies behind. They are refreshed by re-migration:
dpct over the old and the merged tree, sycl/tools/normalize.sh (dpct's names, unchanged files, message
serials, fixups.py) on both, then a 3-way merge per file. Copies dpct never produced (verify.cpp, mtp.cpp)
take upstream's K8V4 diff by hand. The PTX gate fixup follows upstream's new __HIPCC__ guard (#elif).
The AOT build never received -cl-fp32-correctly-rounded-divide-sqrt (it went to the spir64 backend, which
an AOT build does not have): quantize_act_parity had its 303k mismatches back. The option now reaches
ocloc through -device "... -options ...". 19 of 22 parity tests pass again; kv_hybrid_parity (new) passes
all but its tensor-core step and is built, not registered.
B70, merged engine, AOT, --stream-experts --no-prefill-borrow --spec 4 --mtp: 2,184-token prompt 566.5
tok/s (was 475), decode 38.3 tok/s at that context (was 42.7; 77% draft acceptance on this text), MTP
prompt pass 38.6 ms (E-9 batched).
27 lines
1.6 KiB
Bash
Executable File
27 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# normalize.sh <dpct-out-dir> <upstream-commit>: a fresh migrate.sh output in the port's shape, for a 3-way merge.
|
|
# - dpct's `X.cpp.dp.cpp` becomes `X.cpp` (the .cu -> .dp.cpp names stay), its .yaml/report files go
|
|
# - files dpct left byte-identical to the upstream original go too (sycl/CMakeLists.txt falls back to them)
|
|
# - the DPCTnnnn:<serial> message numbers are dropped (they renumber on every run and would be pure noise)
|
|
# - fixups.py runs on the result
|
|
# Updating the port after an upstream merge (docs/INTEL.md "Keeping up with upstream"):
|
|
# migrate the OLD upstream tree to sycl-base and the merged tree to sycl-new, normalize both with their
|
|
# commits, then for every file in both: git merge-file sycl/F sycl-base/F sycl-new/F
|
|
set -euo pipefail
|
|
d=$(cd "$1" && pwd); rev=$2; repo=$(cd "$(dirname "$0")/../.." && pwd)
|
|
cd "$d"
|
|
find . -name '*.yaml' -delete; rm -f dpct_report.*
|
|
find . -name '*.cpp.dp.cpp' | while read -r f; do mv "$f" "${f%.cpp.dp.cpp}.cpp"; done
|
|
n=0
|
|
while read -r f; do
|
|
rel=${f#./}; orig=$rel; [[ $rel == *.dp.cpp ]] && orig=${rel%.dp.cpp}.cu
|
|
if git -C "$repo" cat-file -e "$rev:$orig" 2>/dev/null && cmp -s "$f" <(git -C "$repo" show "$rev:$orig"); then
|
|
rm "$f"; n=$((n+1))
|
|
fi
|
|
done < <(find src include third_party -type f 2>/dev/null)
|
|
find . -type d -empty -delete
|
|
find src include -type f -exec sed -i -E 's/DPCT([0-9]{4}):[0-9]+:/DPCT\1:/' {} +
|
|
mkdir -p tools && cp "$repo/sycl/tools/fixups.py" tools/
|
|
python3 tools/fixups.py > fixups.log 2>&1 || { tail -5 fixups.log; exit 1; }
|
|
echo "$d: dropped $n unchanged files, $(find src include -type f | wc -l) remain, fixups applied: $(grep -c fixed fixups.log)"
|