# Build the CPU and GPU (ops_gpu) integer decoders from ~/wai-build/idf/src into bin/{native,gpu}.. set -euo pipefail R=$HOME/wai-build/idf; W=$R/work; export CARGO_TARGET_DIR=$R/target # the toolchain: rustup 1.98.0 on PATH TAG=${1:?tag} cd $R/src/wai/wai-rs nice -n 10 cargo build --locked --release --no-default-features --features neural_int --bin wai_det_cost -j 16 2>&1 | tail -1 cp $CARGO_TARGET_DIR/release/wai_det_cost $R/bin/native.$TAG nice -n 10 cargo build --locked --release --no-default-features --features neural_int,ops_gpu --bin wai_det_cost -j 16 2>&1 | tail -1 cp $CARGO_TARGET_DIR/release/wai_det_cost $R/bin/gpu.$TAG ls -la $R/bin