Fix MIOPEN_FIND_ENFORCE: 3 -> 1 (DB_UPDATE)
Some checks failed
Build ROCm Image / build (push) Has been cancelled

Enforce=3 (SEARCH_DB_UPDATE) runs exhaustive kernel benchmarking on
every single GPU operation, making inference impossibly slow. Enforce=1
searches once, writes to cache, then reuses cached results on all
subsequent calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-05 12:29:54 -04:00
parent f45fa0496e
commit 7a966c8532

View File

@@ -25,9 +25,9 @@ services:
- miopen_cache:/app/miopen_cache
environment:
- HF_HUB_ENABLE_HF_TRANSFER=1
# MIOpen: only select solvers that fit in available workspace (stops
# the GemmFwdRest workspace warnings and the slow fallback path).
- MIOPEN_FIND_ENFORCE=3
# MIOpen: search for best solver once and cache (1=DB_UPDATE).
# Never use 3 (SEARCH_DB_UPDATE) in production - it benchmarks on every call.
- MIOPEN_FIND_ENFORCE=1
# Persist MIOpen's kernel cache so it doesn't recompile on every start.
- MIOPEN_USER_DB_PATH=/app/miopen_cache
- MIOPEN_CUSTOM_CACHE_DIR=/app/miopen_cache