Fix larger models not loading on Windows.
4GB is not enough, since the normal GPU limit wasn't used for the new sandbox type. Bug: b/311447339 Change-Id: I2bc11891b6f542747c8242efe30b2b4bce50c5a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5039228 Reviewed-by: James Forshaw <forshaw@chromium.org> Auto-Submit: John Abd-El-Malek <jam@chromium.org> Commit-Queue: James Forshaw <forshaw@chromium.org> Cr-Commit-Position: refs/heads/main@{#1225976}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8f87cc9779
commit
66fac67edf
@ -1146,7 +1146,8 @@ std::optional<size_t> SandboxWin::GetJobMemoryLimit(Sandbox sandbox_type) {
|
||||
#if defined(ARCH_CPU_64_BITS)
|
||||
size_t memory_limit = static_cast<size_t>(kDataSizeLimit);
|
||||
|
||||
if (sandbox_type == Sandbox::kGpu || sandbox_type == Sandbox::kRenderer) {
|
||||
if (sandbox_type == Sandbox::kGpu || sandbox_type == Sandbox::kRenderer ||
|
||||
sandbox_type == Sandbox::kOnDeviceModelExecution) {
|
||||
constexpr uint64_t GB = 1024 * 1024 * 1024;
|
||||
// Allow the GPU/RENDERER process's sandbox to access more physical memory
|
||||
// if it's available on the system.
|
||||
|
Reference in New Issue
Block a user