Translator: a mesh stage's stated maximum is its required size's threads first, as Metal answers it
What: stated_threads takes the descriptor's required threadgroup size for the stage first: its threads, then the descriptor's maximum, then the function's attribute, then 1024. mesh_fields keys both required sizes, since the stated maxima now depend on them. The doc comments say where each part of the rule was measured. Why: the conformance probe mesh_pipeline_limits.m, measured on an M3 Max under macOS 27.0.1 with each case a first compile, records the rule: - `plain`, with nothing stated, answers 1024 for both stages. That is the source of "else 1024". - A required size answers its threads, even below a function's own maximum: required-object-32x2 answers 64, required-mesh-16x2 answers 32, and required-object-32-attribute-64 answers 32. - A maximum or an attribute answers itself. The parent commit left the required size out. The descriptor's doc said no limit depended on it, which those rows contradict. Tests: a_mesh_pipeline_states_its_thread_maxima_by_metal_s_rule adds three rows: - (32,2,1) required for the object stage gives (64, 1024); - (16,2,1) required for the mesh stage gives (1024, 32); - mesh_outputs with (32,1,1) required for the object stage, whose function states 64, gives (32, 32). The ARTIFACT_FORMAT_VERSION bump of the parent covers this, and every mesh pipeline's key moves. api_signatures.tsv is re-blessed and unchanged.
This commit is contained in:
1 parent
ed873cf04b
commit
7fa5ab461e
5 files changed
+94
-36
No files matched your search
+4
-2
@@ -1190,8 +1190,10 @@ Where the mesh function reads a payload, the launcher emits an arena of its size
|
||||
|
||||
The pipeline states each stage's thread maximum by Metal's rule, before any device limit
|
||||
(`GraphicsState::max_total_threads_per_object_threadgroup` and
|
||||
`max_total_threads_per_mesh_threadgroup`): the descriptor's maximum where it states one, else the
|
||||
function's `[[max_total_threads_per_threadgroup(n)]]`, else 1024; the object one is `None` without
|
||||
`max_total_threads_per_mesh_threadgroup`): the threads of the descriptor's required size where it
|
||||
states one, else its maximum where it states one, else the function's
|
||||
`[[max_total_threads_per_threadgroup(n)]]`, else 1024, each as an M3 Max answers a first compile
|
||||
(macOS 27.0.1, the conformance probe `mesh_pipeline_limits.m`); the object one is `None` without
|
||||
an object function. A consumer answers the least of it and the stage's device limits
|
||||
(`maxTaskWorkGroupInvocations` and `maxTaskWorkGroupSize[0]`, or the mesh stage's), and
|
||||
specializes the stage's workgroup to that many threads in one row (`SpecKey::ObjectLocalSize` and
|
||||
|
||||
Reference in new issue
Block a user