q4lite on Windows HIP: the cudaMemGetInfo shim symbol (as src/ling32 defines it)

This commit is contained in:
Niko1221 committed 2026-12-04 09:39:58 +01:00
1 parent da47a6cfb9
commit 825ae71d02
1 file changed
+7
+7
View File
@@ -175,3 +175,10 @@ bool GpuModel::load_experts(const Q4File& f, const ExpertPlan& plan, std::string
}
} // namespace strata::q4lite
#if defined(STRATA_USE_HIP) && defined(_WIN32)
// the HIP shim routes cudaMemGetInfo through the main engine's WDDM-budget helper (src/core/device.cu); this standalone engine uses the runtime's own numbers (as src/ling32 does)
namespace strata::hip_compat {
hipError_t mem_get_info(size_t* free_bytes, size_t* total_bytes) { return hipMemGetInfo(free_bytes, total_bytes); }
} // namespace strata::hip_compat
#endif