Merge f-151-amd (d9070189c) into f-split-int2
Conflicts with 148-amd's gfx12 WMMA default resolved: STRATA_HIP_WMMA unset = gfx12 on every call (148-amd), 0 = off, 1 = forced (also gfx11), auto = gfx12 with n_q >= STRATA_HIP_WMMA_MIN_Q; failed launch falls back to the FP32 kernel; the 96-slot ring follows the same state; the opt-in hint is gone.
This commit is contained in:
commit
58f81f20e3
13 files changed
+593
-158
No files matched your search
@@ -2116,6 +2116,10 @@ strata::kernels::cpu::PoolAffinity measure_pool_affinity(strata::core::ExpertSou
|
||||
return take_p ? cpu::PoolAffinity::PCores : cpu::PoolAffinity::All;
|
||||
}
|
||||
|
||||
// HIP: the thread that warms hipBLAS's libraries while the expert arena loads (see warm_gemm_libraries); joined at exit.
|
||||
std::thread g_warm_thr;
|
||||
struct WarmJoin { ~WarmJoin() { if (g_warm_thr.joinable()) g_warm_thr.join(); } } g_warm_join;
|
||||
|
||||
// 0.1.42, CUDA single-GPU serve, no --pcie-frac: the share refined from what the CPU pool measures in the first decode
|
||||
// windows. The balance share of the missed experts is link / (link + CPU rate). The link is the start-up probe; the CPU
|
||||
// rate is the expert bytes over the pool's wall time per missed expert (ExpertDispatch::ms_run / multi_misses), which the
|
||||
@@ -5373,6 +5377,8 @@ int main(int argc, char** argv) {
|
||||
const char* name = named && p.name[0] ? p.name : "(an unnamed GPU)";
|
||||
#if defined(STRATA_USE_HIP)
|
||||
std::fprintf(stderr, "strata generate: GPU %d: %s (%s)\n", dev, name, named ? p.gcnArchName : "?");
|
||||
// the first prompt's one-time hipBLAS library loads (about 2.5 s), done on a thread while the expert arena loads
|
||||
if (named) g_warm_thr = std::thread([dev] { strata::prefill::warm_gemm_libraries(dev); });
|
||||
// (RDNA4's matrix-core prompt attention is the default since 148-amd: the engine says so once, at its first prompt;
|
||||
// STRATA_HIP_WMMA=0 turns it off.)
|
||||
#if defined(_WIN32)
|
||||
|
||||
Reference in new issue
Block a user