Skip to content

Commit 4f1075c

Browse files
committed
Update on "[ET-VK][ez] Improvements to GLSL codegen script"
## Changes Fixed a bug in the caching mechanism in the `gen_vulkan_spv.py` script where changing the YAML file will not trigger a recompile. Allow the python codegen to be applied to files other than GLSL compute shaders. One example application of this is generating header files (`.glslh` files) which can be shared among multiple `.glsl` files. This enables better code re-use and organization. For a simple application of this, see the `reference_matmul_common.glslh` file that was added to the test compute shader library. Differential Revision: [D74008572](https://our.internmc.facebook.com/intern/diff/D74008572/) [ghstack-poisoned]
1 parent e081ec5 commit 4f1075c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backends/vulkan/runtime/gen_vulkan_spv.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,6 @@ def genCppFiles(
11401140
if spvPath is None:
11411141
continue
11421142

1143-
print(spvPath)
1144-
print(srcPath)
11451143
name = getName(spvPath).replace("_spv", "")
11461144

11471145
sizeBytes, spv_bin_str = generateSpvBinStr(spvPath, name)

0 commit comments

Comments
 (0)