18 lines
734 B
Bash
18 lines
734 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
# Usage: ./run_gpu_feature_batch01_v1.sh [cache-directory]
|
||
|
|
# The source mounts are read-only; only the cache directory is writable.
|
||
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
CACHE_DIR="${1:-${ROOT}/.gpu-feature-cache}"
|
||
|
|
mkdir -p "${CACHE_DIR}"
|
||
|
|
|
||
|
|
docker build -f "${ROOT}/Dockerfile.gpu-feature-v1" -t artifex-gpu-feature-v1 "${ROOT}"
|
||
|
|
docker run --rm --gpus all \
|
||
|
|
--mount "type=bind,src=${ROOT}/hs22_oracle_v1,dst=/data,readonly" \
|
||
|
|
--mount "type=bind,src=${ROOT},dst=/oracle,readonly" \
|
||
|
|
--mount "type=bind,src=${CACHE_DIR},dst=/cache" \
|
||
|
|
artifex-gpu-feature-v1 --mode parity --report /cache/batch01_gpu_parity_report.json
|
||
|
|
|
||
|
|
echo "Wrote ${CACHE_DIR}/batch01_gpu_parity_report.json"
|