You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable RANGE definition in shader YAML for repetitive shader generation (#4196)
Summary:
Pull Request resolved: #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
0 commit comments