Skip to content

Commit 220cd21

Browse files
committed
Update on "[ET-VK] Enforce GPU buffer limit when partitioning"
## Context In Vulkan, there is a limit on the number of elements a GPU buffer can have. If a GPU buffer exceeds this limit, then the API will either produce an error or undefined behaviour will ensue. ## Changes Along with `texture_limits`, introduce a configurable `buffer_limit` entry in the partitioner configuration. Differential Revision: [D65899828](https://our.internmc.facebook.com/intern/diff/D65899828/) [ghstack-poisoned]
1 parent c4a9de5 commit 220cd21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def is_tensor_node(node: torch.fx.Node) -> bool:
8787
ImageExtents = Tuple[int, int, int]
8888

8989
DEFAULT_TEXTURE_LIMITS = (16384, 16384, 2048)
90-
DEFAULT_BUFFER_LIMIT = 134217728
90+
DEFAULT_BUFFER_LIMIT = 128 * (1024 * 1024)
9191

9292

9393
class PackedDim(IntEnum):

0 commit comments

Comments
 (0)