Datasets:
File size: 520 Bytes
347d9a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/usr/bin/env bash
set -euo pipefail
TASK_DATA=$1
TASK_OFFSET=$2
TASK_PIDS=()
for TASK_GPU in {0..7}; do
TASK_SHARD=$((TASK_OFFSET+TASK_GPU))
bash exhibition_dataset/runtime.sh -m exhibition_v3.render --root "$TASK_DATA" --gpu "$TASK_GPU" --shard "$TASK_SHARD" --shards 16 --cache-root /tmp/dish_exhibition_v3_render > "$TASK_DATA/operations/logs/render_$TASK_SHARD.log" 2>&1 &
TASK_PIDS+=("$!")
done
TASK_FAILED=0
for TASK_PID in "${TASK_PIDS[@]}"; do wait "$TASK_PID" || TASK_FAILED=1; done
exit "$TASK_FAILED"
|