Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
cd "${REPO_ROOT}"

# Broad test runs must be deterministic; dedicated autotune tests opt in per test.
export FLYDSL_AUTOTUNE=0

# Auto-select GPU with the most free VRAM (skip if HIP_VISIBLE_DEVICES is already set).
if [[ -z "${HIP_VISIBLE_DEVICES:-}" ]] && command -v python3 &>/dev/null; then
_best_gpu=$(python3 -c "
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def default(a, out):

# ── two-track default/search ─────────────────────────────────────────────
def test_cache_hit_precedes_default_and_search(monkeypatch):
monkeypatch.delenv("FLYDSL_AUTOTUNE", raising=False)
# The broad test runner uses the explicit off value; search stays opt-in.
monkeypatch.setenv("FLYDSL_AUTOTUNE", "0")
default_calls = 0

def fn(a, out, BLOCK):
Expand Down
Loading