AMD: hipBLASLt table for 100200 (the pinned ROCm), used by setup's configs (+42-59% prompt speed on the 7900 XTX); server: a config's env reaches the engine

This commit is contained in:
Niko1221 committed 2026-09-29 17:26:20 +02:00
1 parent 9065ae0b2d
commit 5cb4ff283d
3 files changed
+35

No files matched your search

+2
View File
@@ -493,6 +493,8 @@ def child_env(cfg: dict) -> dict:
elif gpu_list(cfg): # issue #51: the GPU(s) to run on, numbered as nvidia-smi does; CUDA's
env["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # own default order (fastest first) can number the cards otherwise
env["CUDA_VISIBLE_DEVICES"] = ",".join(str(i) for i in gpu_list(cfg))
for k, v in (cfg.get("env") or {}).items(): # engine settings the config carries (AMD: the GEMM tuning table)
env[str(k)] = str(v)
dirs = [d for d in cfg.get("lib_dirs") or [] if Path(d).is_dir()]
if dirs:
var = "PATH" if os.name == "nt" else "LD_LIBRARY_PATH"
+5
View File
@@ -1828,6 +1828,11 @@ def main() -> int:
"lib_dirs": lib_dirs, "port": port}
if hip:
cfg["backend"] = "hip"
# the dense prompt GEMMs through hipBLASLt with kernels measured on this GPU generation (tools/hip; +40-60%
# prompt speed on the 7900 XTX); the engine refuses a table made for another hipBLASLt version and falls back
tables = sorted((ROOT / "tools" / "hip").glob(f"{gpu['arch']}-hipblaslt-*.txt"))
if tables:
cfg["env"] = {"STRATA_HIPBLASLT_TUNING": str(tables[-1])}
if gpu["count"] > 1 or a.gpu is not None:
cfg["gpu"] = gpu["index"] # the engine is told this card (issue #51)
cfg["gpus_asked"] = True # chosen at setup: not asked again at start
+28
View File
@@ -0,0 +1,28 @@
# solution IDs are scoped to this hipBLASLt version and device architecture
STRATA_HIPBLASLT_TUNING_V1 gfx1100 100200
bf16 1 2560 1 4096 541
bf16 4 10240 4 8192 542
bf16 48 2560 96 4096 541
bf16 48 2560 96 8192 542
bf16 128 2560 128 4096 542
bf16 128 2560 128 8192 542
bf16 320 10240 320 4096 542
bf16 320 10240 320 8192 542
bf16 512 2560 512 8192 542
bf16 2560 2560 2560 8192 542
bf16 10240 320 10240 4096 542
bf16 10240 320 10240 8192 542
f16 512 2560 512 4096 1147
f16 512 2560 512 8192 1147
f16 640 2560 640 4096 1147
f16 640 2560 640 8192 1147
f16 2560 640 2560 4096 1147
f16 2560 640 2560 8192 1147
f16 2560 6144 2560 4096 1147
f16 2560 6144 2560 8192 1147
f16 6144 2560 6144 4096 1147
f16 6144 2560 6144 8192 1147
f16 10240 2560 10240 4096 1147
f16 10240 2560 10240 8192 1147
f16 12288 2560 12288 4096 1147
f16 12288 2560 12288 8192 1147