Enable RANGE definition in shader YAML for repetitive shader generation (#4196)
Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/4196
GPUInfo requires the compilation of a ton of shaders with small variations to emulate OpenCL's kernel compilation on runtime with strings. This diff enables a RANGE implementation to generate these shaders dynamically without typing each value out.
The format is
- RANGE: [start, end] // Inclusive
SUFFIX: string // Optional
If a suffix is selected, the shaders will be called `name_suffix_K ` for each value K from the range. If no suffix is selected, the shaders will be simply called `name_K `
Reviewed By: SS-JIA
Differential Revision: D59588223
fbshipit-source-id: 67394c6b860c09e324baa45ccf7f5b7d6d555ed2 E
Esteban Padilla Cerdio committed
c698791effb826f6b1b81e5b255476eb6652f60c
Parent: e3e6744
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 7/11/2024, 5:23:12 PM