#!/bin/bash

# Find all the bazel targets that have the benchmark tag in them and run them.

QUERY="$(bazel query 'attr('tags', 'benchmark', //vision/...)')"
for OUTPUT in $(echo "${QUERY}" | tr ";" "\n")
do
  bazel run --config=cuda -c opt $OUTPUT
done
