mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
q4lite on Windows HIP: the cudaMemGetInfo shim symbol (as src/ling32 defines it)
This commit is contained in:
1 parent
da47a6cfb9
commit
825ae71d02
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