Skip to content

Commit be86fb1

Browse files
committed
Update on "[ET-VK] Cache compiled SPIR-V and only recompile when changed"
## Context As title. Introduce a caching mechanism to store SPIR-V generated in a previous build to avoid re-compiling them. A shader will not be re-compiled if the source GLSL template is unchanged. For Meta internal builds, the `etvk.force_shader_rebuild` buck config can be used to force all shaders to be built without using the cache. Differential Revision: [D71916745](https://our.internmc.facebook.com/intern/diff/D71916745/) [ghstack-poisoned]
1 parent 00f3e34 commit be86fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/runtime/gen_vulkan_spv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ def maybe_replace_u16vecn(self, input_text: str) -> str:
735735
input_text = input_text.replace("uint16_t", "int")
736736
return input_text
737737

738-
def get_md5_checksum(self, file_path: str) -> bool:
738+
def get_md5_checksum(self, file_path: str) -> str:
739739
# Use a reasonably sized buffer for better performance with large files
740740
BUF_SIZE = 65536 # 64kb chunks
741741

0 commit comments

Comments
 (0)