This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/unity by this push:
     new 7270715cc6 [Unity][Web] WebGPU explicit max buffer size (#14321)
7270715cc6 is described below

commit 7270715cc697a90ddf332ef52aabf51979356c44
Author: Ruihang Lai <[email protected]>
AuthorDate: Thu Mar 16 14:28:21 2023 -0400

    [Unity][Web] WebGPU explicit max buffer size (#14321)
    
    This PR specifies the maximum buffer size limit of WebGPU runtime
    explicitly so that the limit will not be a tight one by default.
    
    In the future, we can analysis and detect the needed max buffer size
    limit and actively request the GPU.
---
 web/src/webgpu.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/web/src/webgpu.ts b/web/src/webgpu.ts
index 57a9be8cf9..8137646921 100644
--- a/web/src/webgpu.ts
+++ b/web/src/webgpu.ts
@@ -43,6 +43,7 @@ export async function detectGPUDevice(): 
Promise<GPUDeviceDetectOutput | undefin
     const adapterInfo = await adapter.requestAdapterInfo();
     const device = await adapter.requestDevice({
       requiredLimits: {
+        maxBufferSize: 1 << 30,
         maxStorageBufferBindingSize: 1 << 30,
         maxComputeWorkgroupStorageSize: 32 << 10,
       }

Reply via email to