diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-30 16:34:30 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-30 16:34:30 -0500 |
| commit | 716205eba862076c1d0fbbff016601272e4614f2 (patch) | |
| tree | dc8c31dcfefa49d53c98d305fe35419da76e58c9 /experiments/bootstrap_plain_cnn.sh | |
| parent | 906d17e896329e4d2dd8d7f728e4d5a234afe0e4 (diff) | |
experiment: package portable A6000 crossover
Diffstat (limited to 'experiments/bootstrap_plain_cnn.sh')
| -rwxr-xr-x | experiments/bootstrap_plain_cnn.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/experiments/bootstrap_plain_cnn.sh b/experiments/bootstrap_plain_cnn.sh new file mode 100755 index 0000000..0d6145f --- /dev/null +++ b/experiments/bootstrap_plain_cnn.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash +set -euo pipefail + +if [[ "$#" -ne 1 ]]; then + echo "usage: $0 /absolute/path/to/dualprop-sdil" >&2 + exit 2 +fi + +target="$1" +if [[ "$target" != /* ]]; then + echo "target must be an absolute path" >&2 + exit 2 +fi +if [[ -e "$target" ]]; then + echo "refusing to overwrite existing target: $target" >&2 + exit 2 +fi + +main_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +patch_root="$main_root/external/dualprop_patches" +base_revision="7b2595b34421e1483a721dbfdeff8cdabda3a1ff" + +if [[ "$(find "$patch_root" -maxdepth 1 -name '*.patch' | wc -l)" -ne 19 ]]; then + echo "expected 19 frozen Dual Propagation patches" >&2 + exit 1 +fi + +git clone https://github.com/Rasmuskh/dualprop_icml_2024.git "$target" +git -C "$target" checkout -b sdil-a6000 "$base_revision" +git -C "$target" config user.name "SDIL replication runner" +git -C "$target" config user.email "sdil-replication@invalid.example" +git -C "$target" am --committer-date-is-author-date "$patch_root"/*.patch + +echo "plain-CNN runner ready at $target" +git -C "$target" log -1 --oneline |
