Two test-only fixes. The conformance suite's tile states left maxTotalThreadsPerThreadgroup at Metal's 0 unless a case limited them. A tile state of no limit is answered from Metal's compiler history: Metal keeps a tile pipeline it compiled and answers a later descriptor of the same function that differs only in requiredThreadsPerThreadgroup with the first one's limit, in the same process or a later one (measured on the M3 Max, macOS 27.0.1; the validation oracle's tile pipelines state their limit for that reason since ORACLE_ABI 49). So a re-record could take another pipeline's answer. TilePipelineSpec now carries an explicit u32 limit, as ComputeLimitsSpec does, and both sides set it. Every state that meant Metal's own maximum states METAL_TILE_THREADS (1024), which the M3 Max answers for no limit. tile-state-thread-limits' first state is state-limited-1024 (it was state-unlimited, same answer), and the device-gap ruling for a limit below Metal's applies where the stated limit is Metal's maximum. The eight recordings whose descriptor moved are re-recorded on the M3 Max (macOS 27.0.1, 26A434; three runs each, plain and validated legs). Only their input digests and that renamed state change: every answer is the one recorded before, max_total_threads_per_threadgroup 1024 included. Cost and time records are kept as they were. The validation oracle's "permits N" refusal had a run of stray spaces from a string literal's indentation. The message is one line now, and qualification_contracts asserts it whole. Verified on the M3 (macOS): clippy of metal2vulkan-conformance and metal2vulkan-validation with all targets and features is clean, and a_threadgroup_wider_than_the_pipeline_permits_is_refused passes with the exact message. `conformance record` wrote the eight recordings. (cherry picked from commit 91be83754b4ac765759b679cb872a321eec9dfbe)
445 lines
14 KiB
JSON
445 lines
14 KiB
JSON
{
|
|
"format": 1,
|
|
"case": "tile-state-thread-limits",
|
|
"suite_version": 1,
|
|
"shaders": [
|
|
{
|
|
"fixture": "k10ts_tile_order.ll",
|
|
"entry": "k10ts_tile_order",
|
|
"source_sha256": "79263146113cf8253e6407c59a97f9b6386f4b735d67c2cdf5f05d6908d626b9"
|
|
},
|
|
{
|
|
"fixture": "k10ts_tile_order.air.ll",
|
|
"entry": "k10ts_tile_order",
|
|
"source_sha256": "f78d54ea1a28510e239ac7b5f810d9d44a079304cf3fbc0c7b0208118e97230b"
|
|
}
|
|
],
|
|
"answers": [
|
|
{
|
|
"key": {
|
|
"chip": "apple-m3-max",
|
|
"os_version": "27.0.1",
|
|
"os_build": "26A434",
|
|
"metal_level": "27.0.1"
|
|
},
|
|
"provenance": "metal_run",
|
|
"device": "Apple M3 Max",
|
|
"runs": 3,
|
|
"outcomes": [
|
|
{
|
|
"runs": 3,
|
|
"transcript": {
|
|
"root": {
|
|
"name": "case",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "inputs",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "air",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "79263146113cf8253e6407c59a97f9b6386f4b735d67c2cdf5f05d6908d626b9"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "air-typed",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "f78d54ea1a28510e239ac7b5f810d9d44a079304cf3fbc0c7b0208118e97230b"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tile-pipeline:state-limited-1024",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "f371e74419a1d87b07021bd1ff630c514b9b45a98506ba519974be32f303b5c7"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tile-pipeline:state-limited-512",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "768308f55c23d9f5e6a72d05206822c55b0d591d5cb59b208f5be4a05457428c"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "tile-pipeline:state-limited-1000",
|
|
"observed": {
|
|
"value": "absent",
|
|
"digest": {
|
|
"kind": "sha256",
|
|
"hex": "eb58d3cd6490a21a10fe37c7695a9034bd78bbb75bc5386e70c5831d530e5e60"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "library",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Ok",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "state-limited-1024",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Ok",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "state-limited-1024-facts",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "max_total_threads_per_threadgroup",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 1024
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "threadgroup_size_matches_tile_size",
|
|
"observed": {
|
|
"value": {
|
|
"bool": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "imageblock_sample_length",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Some",
|
|
"payload": {
|
|
"uint": 4
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "state-limited-512",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Ok",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "state-limited-512-facts",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "max_total_threads_per_threadgroup",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 512
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "threadgroup_size_matches_tile_size",
|
|
"observed": {
|
|
"value": {
|
|
"bool": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "imageblock_sample_length",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Some",
|
|
"payload": {
|
|
"uint": 4
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "state-limited-1000",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Ok",
|
|
"payload": "absent"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "state-limited-1000-facts",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "max_total_threads_per_threadgroup",
|
|
"observed": {
|
|
"value": {
|
|
"uint": 960
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "threadgroup_size_matches_tile_size",
|
|
"observed": {
|
|
"value": {
|
|
"bool": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "imageblock_sample_length",
|
|
"observed": {
|
|
"value": {
|
|
"variant": {
|
|
"name": "Some",
|
|
"payload": {
|
|
"uint": 4
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "notices",
|
|
"observed": {
|
|
"value": "absent"
|
|
},
|
|
"children": [
|
|
{
|
|
"name": "set",
|
|
"observed": {
|
|
"value": {
|
|
"nothing": "announced_nothing"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "counts",
|
|
"observed": {
|
|
"value": {
|
|
"fields": {}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"validated": "ran"
|
|
}
|
|
],
|
|
"costs": [
|
|
{
|
|
"venue": "Apple M3 Max",
|
|
"runs": 8,
|
|
"measured": "8 run(s) of the whole selection on Apple M3 Max, in the case set's own order, the largest each count reached",
|
|
"contrasted": "8 run(s) of each case on its own on Apple M3 Max, nothing before it on the device, the largest each count reached",
|
|
"bounds": {
|
|
"addressable_buffers_made": 2,
|
|
"blocks_ahead_waited_for": 3,
|
|
"buffer_blocks_made_ahead": 2,
|
|
"functions_shared": 3,
|
|
"functions_translated": 1,
|
|
"image_blocks_made_ahead": 1,
|
|
"pipeline_layouts_made": 1,
|
|
"pipeline_layouts_shared": 2,
|
|
"plain_buffer_blocks_made": 2,
|
|
"pooled_memory_blocks_made": 3,
|
|
"shader_modules_made": 1,
|
|
"shader_modules_shared": 2,
|
|
"stage_entries_specialized": 1
|
|
},
|
|
"composed": {
|
|
"addressable_buffers_made": 2,
|
|
"blocks_ahead_waited_for": 3,
|
|
"buffer_blocks_made_ahead": 2,
|
|
"functions_translated": 1,
|
|
"image_blocks_made_ahead": 1,
|
|
"plain_buffer_blocks_made": 2,
|
|
"pooled_memory_blocks_made": 3,
|
|
"stage_entries_specialized": 1
|
|
},
|
|
"per_state": {
|
|
"pipelines": 0,
|
|
"states": 3
|
|
}
|
|
}
|
|
],
|
|
"times": [
|
|
{
|
|
"leg": "metal",
|
|
"venue": "native Metal",
|
|
"chip": "apple-m3-max",
|
|
"os_build": "26A434",
|
|
"rounds": 8,
|
|
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
|
|
"instrument": 236,
|
|
"times": {
|
|
"case": "tile-state-thread-limits",
|
|
"calls": 7,
|
|
"in_calls": 22307041,
|
|
"on_cpu": 742251,
|
|
"blocked": 21579333,
|
|
"elsewhere": 2875,
|
|
"spend": 22307208,
|
|
"spend_least": 21870417,
|
|
"spend_most": 23265960,
|
|
"per_call": [
|
|
{
|
|
"call": "library",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 22171417,
|
|
"on_cpu": 592084,
|
|
"blocked": 21579333,
|
|
"wall_least": 21702458,
|
|
"wall_most": 23122167,
|
|
"wall_total": 22171417,
|
|
"on_cpu_total": 592084,
|
|
"blocked_total": 21579333
|
|
},
|
|
{
|
|
"call": "tile_facts",
|
|
"least_calls": 3,
|
|
"most_calls": 3,
|
|
"wall": 42,
|
|
"on_cpu": 167,
|
|
"blocked": 0,
|
|
"wall_least": 41,
|
|
"wall_most": 42,
|
|
"wall_total": 500,
|
|
"on_cpu_total": 916,
|
|
"blocked_total": 0
|
|
},
|
|
{
|
|
"call": "tile_pipeline",
|
|
"least_calls": 3,
|
|
"most_calls": 3,
|
|
"wall": 29500,
|
|
"on_cpu": 29667,
|
|
"blocked": 0,
|
|
"wall_least": 27958,
|
|
"wall_most": 41084,
|
|
"wall_total": 135126,
|
|
"on_cpu_total": 135792,
|
|
"blocked_total": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"leg": "ours",
|
|
"venue": "Apple M3 Max",
|
|
"chip": "apple-m3-max",
|
|
"os_build": "26A434",
|
|
"rounds": 8,
|
|
"measured": "8 round(s) of the whole selection, in the case set's own order, each round on a fresh device, our shader cache carried over between the cases of a round; a figure is the median of the rounds' own medians; Metal's leg ran at a one-minute load average of 3.18 and ours at 2.63; the legs run one after the other, so the per-call margin is judged only when both are 26.0 or under and within 2.0x of each other",
|
|
"instrument": 233,
|
|
"times": {
|
|
"case": "tile-state-thread-limits",
|
|
"calls": 7,
|
|
"in_calls": 711667,
|
|
"on_cpu": 713168,
|
|
"blocked": 0,
|
|
"elsewhere": 4250,
|
|
"spend": 715125,
|
|
"spend_least": 647167,
|
|
"spend_most": 860959,
|
|
"per_call": [
|
|
{
|
|
"call": "library",
|
|
"least_calls": 1,
|
|
"most_calls": 1,
|
|
"wall": 117125,
|
|
"on_cpu": 117834,
|
|
"blocked": 0,
|
|
"wall_least": 101375,
|
|
"wall_most": 195542,
|
|
"wall_total": 117125,
|
|
"on_cpu_total": 117834,
|
|
"blocked_total": 0
|
|
},
|
|
{
|
|
"call": "tile_facts",
|
|
"least_calls": 3,
|
|
"most_calls": 3,
|
|
"wall": 167,
|
|
"on_cpu": 292,
|
|
"blocked": 0,
|
|
"wall_least": 125,
|
|
"wall_most": 250,
|
|
"wall_total": 1083,
|
|
"on_cpu_total": 1501,
|
|
"blocked_total": 0
|
|
},
|
|
{
|
|
"call": "tile_pipeline",
|
|
"least_calls": 3,
|
|
"most_calls": 3,
|
|
"wall": 203333,
|
|
"on_cpu": 203584,
|
|
"blocked": 0,
|
|
"wall_least": 185208,
|
|
"wall_most": 247292,
|
|
"wall_total": 596750,
|
|
"on_cpu_total": 597375,
|
|
"blocked_total": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|