mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
Merge f-0226-q4-hip (825ae71d02): a cudaMemGetInfo shim symbol in q4_tier.cu for the Windows HIP build of strata-q4-lite
One commit on da47a6cfb9, engine/src/q4lite/q4_tier.cu only, under `#if defined(STRATA_USE_HIP) && defined(_WIN32)`: strata::hip_compat::mem_get_info returns hipMemGetInfo (the standalone engine uses
the runtime's own numbers, not the main engine's WDDM-budget helper). Nothing else is compiled differently. Lane: compile-only builds of strata-q4-lite, Linux (p620, SDK 7.10) rx7900 / rx6000 / rx9070 / halo
and Windows (owner PC, TheRock SDK) rx9070 / rdna2; rdna3 queued; only gfx1201 has run it.
This commit is contained in:
commit
b860265eca
1 file changed
+7
@@ -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
|
||||
Reference in new issue
Block a user