scripts: hugepages-id private MTP staging dir (0700), installer --tools-only; docs: hugepages page draft (mapping facts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a8171b2cc0
commit
2725385741
@@ -13,7 +13,8 @@ LOCK=/data/leleka-e2e/gpu.lock
|
||||
HP=/data/leleka-e2e/hugepages
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
O=/data/leleka-e2e/runs/hugepages-id
|
||||
mkdir -p $O $HP/mtp-staging
|
||||
mkdir -p $O
|
||||
install -d -m 0700 $HP/mtp-staging; chmod 0700 $HP/mtp-staging # the MTP staging directory must be private (0700) or the binding refuses (Metadata)
|
||||
( cd / && sha256sum --quiet -c "$HP/MANIFEST.sha256" ) || { echo "hugepages: MANIFEST.sha256 check failed" >&2; exit 3; }
|
||||
export LD_LIBRARY_PATH=$HOME/cuda-toolkits/cublas-12.9.1.4/lib:$HOME/cuda-toolkits/13.2.2/lib64:${LD_LIBRARY_PATH:-}
|
||||
A=/home/para/work/leleka/models/leleka-gates/assets
|
||||
|
||||
@@ -7,14 +7,16 @@ set -euo pipefail
|
||||
HP=/data/leleka-e2e/hugepages
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
SRC=$(cd "$(dirname "$0")" && pwd)
|
||||
BIN=${1:?directory with the uploaded binaries}
|
||||
BIN=${1:?directory with the uploaded binaries, or --tools-only}
|
||||
mkdir -p "$HP/tools" "$HP/bin-hugepages"
|
||||
chmod -R u+w "$HP/tools" "$HP/bin-hugepages" 2>/dev/null || true
|
||||
chmod u+w "$HP/rt-hugepages" 2>/dev/null || true
|
||||
for f in hugepages-ab.sh hugepages-id.sh hugepages-analyze.py baseline-sampler.py ts-wrap.sh; do install -m 0444 "$SRC/$f" "$HP/tools/$f"; done
|
||||
for b in leleka-inference leleka-daemon leleka-cli strata-next; do install -m 0555 "$BIN/$b" "$HP/bin-hugepages/$b"; done
|
||||
install -m 0444 "$BIN/COMMIT.txt" "$HP/bin-hugepages/COMMIT.txt"
|
||||
install -m 0555 "$BIN/rt-hugepages" "$HP/rt-hugepages"
|
||||
if [ "$BIN" != --tools-only ]; then # --tools-only: refresh the tools and the manifest, keep the installed binaries
|
||||
for b in leleka-inference leleka-daemon leleka-cli strata-next; do install -m 0555 "$BIN/$b" "$HP/bin-hugepages/$b"; done
|
||||
install -m 0444 "$BIN/COMMIT.txt" "$HP/bin-hugepages/COMMIT.txt"
|
||||
install -m 0555 "$BIN/rt-hugepages" "$HP/rt-hugepages"
|
||||
fi
|
||||
chmod a-w "$HP/tools" "$HP/bin-hugepages"
|
||||
{
|
||||
sha256sum "$HP"/tools/* "$HP"/bin-hugepages/* "$HP/rt-hugepages" \
|
||||
|
||||
Reference in New Issue
Block a user