Files
metal2vulkan/crates/metal2vulkan-conformance/recordings/simdgroup-lockstep-divergent-loop.json
T
Anees Iqbal da929c8a96 Re-bless the cost records at d0f0419800
A whole-set cost --runs 8 --write on the M3 Max, then --alone over the cases it
changed: images' blocks at 64 MiB (device_memory_allocated of the cases that
read 68 MiB) and what else moved since 9b046a7cf8 (dv-m3d).
2026-11-11 01:51:58 -08:00

543 lines
18 KiB
JSON

{
"format": 1,
"case": "simdgroup-lockstep-divergent-loop",
"suite_version": 1,
"shaders": [
{
"fixture": "rtl_lockstep.ll",
"entry": "rtl_lockstep_divergent_loop",
"source_sha256": "a0415655f0c500013fc8fb2d8429c8cfe5321ed32d22312580251e41a82d7802"
},
{
"fixture": "rtl_lockstep.air.ll",
"entry": "rtl_lockstep_divergent_loop",
"source_sha256": "fe9f9169ba396c629cda5bb7d4632c3fe0f705e1080dba4ff3b5610b9420a7d9"
}
],
"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": "a0415655f0c500013fc8fb2d8429c8cfe5321ed32d22312580251e41a82d7802"
}
}
},
{
"name": "air-typed",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "fe9f9169ba396c629cda5bb7d4632c3fe0f705e1080dba4ff3b5610b9420a7d9"
}
}
},
{
"name": "buffer:0",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "967c2b80952ede59c7b38118c135dacbe3ef1b0556e33e0ef8ad0c93a6d92ce2"
}
}
},
{
"name": "buffer:1",
"observed": {
"value": "absent",
"digest": {
"kind": "sha256",
"hex": "3774f282071bee8df2737a293d403c60c918ab4ba14158394af0a7bef85e199c"
}
}
}
]
},
{
"name": "library",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "pipeline",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/0",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "buffer/1",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "dispatch",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "status",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": {
"variant": {
"name": "Completed",
"payload": "absent"
}
}
}
}
}
},
{
"name": "read-back",
"observed": {
"value": {
"variant": {
"name": "Ok",
"payload": "absent"
}
}
}
},
{
"name": "counts-half",
"observed": {
"value": {
"nothing": "changed_nothing"
}
}
},
{
"name": "output",
"observed": {
"value": {
"bytes": "BwAAADQAAAD4AQAAFQIAACkAAAA0AAAAQwAAAH8CAACcAgAAVgAAAGEAAABSAAAABgMAACMDAACDAAAAjgAAAAEAAACfAAAA7QUAALAAAAB/AAAAEAAAAMwAAACCBwAA3QAAAAYBAAAfAAAA+QAAABcJAAAKAQAAjQEAAC4AAAAiBQAAPwUAADcBAABCAQAAnQAAAKkFAADGBQAAZAEAAG8BAACsAAAAMAYAAE0GAACRAQAAnAEAALsAAAC3BgAAaw8AAL4BAACpAwAAagAAANoBAAAAEQAA6wEAADAEAAB5AAAABwIAAJUSAAAYAgAAtwQAAIgAAAA0AgAAKhQAAO7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u4="
},
"shape": {
"bytes": {
"region": {
"buffer": {
"offset": 0,
"length": 512
}
},
"element": "u32",
"row_offset": 0,
"row_elements": 64,
"row_pitch": 256,
"rows": 2,
"image_pitch": 512,
"images": 1,
"gaps": "compared"
}
}
}
},
{
"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,
"arena_pools_made": 1,
"argument_objects_retained": 2,
"argument_tables_retained": 1,
"bare_starts": 1,
"batches_held_past_a_look": 1,
"batches_with_none_pending": 1,
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 2,
"command_buffers_begun": 4,
"command_buffers_begun_batch_barriers": 1,
"command_buffers_begun_continuations": 1,
"command_buffers_begun_encoders": 1,
"command_buffers_begun_segments": 1,
"command_buffers_submitted": 4,
"commands_recorded.begin_command_buffer": 4,
"commands_recorded.cmd_bind_descriptor_sets": 1,
"commands_recorded.cmd_bind_pipeline": 1,
"commands_recorded.cmd_dispatch": 1,
"commands_recorded.cmd_pipeline_barrier": 1,
"commands_recorded.cmd_push_constants": 1,
"commands_recorded.end_command_buffer": 4,
"commits_handed_off": 1,
"commits_taken_in": 1,
"completed_waits": 4,
"completed_where_seen": 1,
"completion_arms": 1,
"completion_arms_after_a_wake": 1,
"completion_waiter_parks": 1,
"device_memory_allocated": 205520896,
"dispatch_pipelines_pooled": 1,
"dispatch_shapes_made": 1,
"dispatch_used_resources_listed": 1,
"encoder_command_buffers_begun": 3,
"fence_waits": 1,
"finales_apart": 1,
"functions_translated": 1,
"gate_waits": 1,
"gate_waits_slept": 1,
"heads_held_for_host_steps": 3,
"heap_tables_worked_out": 1,
"host_steps_recorded": 1,
"image_blocks_made_ahead": 1,
"image_blocks_made_in_place": 1,
"new_buffer_bytes_cleared": 768,
"object_churn.buffers_evicted": 1,
"object_churn.buffers_parked": 2,
"object_churn.buffers_recycled": 1,
"object_churn.vk_buffer_bindings": 1,
"object_churn.vk_buffers_destroyed": 1,
"object_churn.vk_buffers_made": 1,
"pipeline_layouts_made": 1,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"queue_submissions": 1,
"queues_sharing_a_vk_queue": 1,
"resident_textures_looked_at": 1,
"scheduled_where_submitted": 1,
"scheduler_passes": 4,
"scheduler_passes_by_waiters": 1,
"scheduler_sleeps": 3,
"scheduler_wakes_commit": 1,
"scheduler_wakes_host": 2,
"shader_modules_made": 1,
"slot_returns": 1,
"spare_command_pools_taken": 1,
"stage_entries_specialized": 1,
"submit_infos": 2,
"trail_waits": 1,
"variant_pipelines_made": 1,
"wakes_completion_waiters": 1,
"wakes_spared": 8
},
"moving": {
"addressable_buffers_made": 0,
"gate_waits_slept": 0,
"pooled_memory_blocks_made": 0
},
"composed": {
"addressable_buffers_made": 2,
"arena_pools_made": 1,
"blocks_ahead_waited_for": 3,
"buffer_blocks_made_ahead": 2,
"buffer_blocks_made_in_place": 0,
"device_memory_allocated": 201326592,
"dispatch_used_resources_listed": 1,
"image_blocks_made_ahead": 1,
"image_blocks_made_in_place": 0,
"plain_buffer_blocks_made": 2,
"pooled_memory_blocks_made": 3,
"queues_sharing_a_vk_queue": 0
},
"per_state": {
"pipelines": 1,
"states": 1
}
}
],
"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": "simdgroup-lockstep-divergent-loop",
"calls": 7,
"in_calls": 26671749,
"on_cpu": 894541,
"blocked": 25778374,
"elsewhere": 3120917,
"spend": 29792666,
"spend_least": 29693582,
"spend_most": 31011252,
"per_call": [
{
"call": "buffer",
"least_calls": 2,
"most_calls": 2,
"wall": 2167,
"on_cpu": 2250,
"blocked": 0,
"wall_least": 2000,
"wall_most": 2500,
"wall_total": 26292,
"on_cpu_total": 26584,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 79000,
"on_cpu": 79208,
"blocked": 0,
"wall_least": 67250,
"wall_most": 358458,
"wall_total": 79000,
"on_cpu_total": 79208,
"blocked_total": 0
},
{
"call": "dispatch",
"least_calls": 1,
"most_calls": 1,
"wall": 119000,
"on_cpu": 119167,
"blocked": 0,
"wall_least": 109833,
"wall_most": 127500,
"wall_total": 119000,
"on_cpu_total": 119167,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 22886917,
"on_cpu": 646041,
"blocked": 22217542,
"wall_least": 22481250,
"wall_most": 24078333,
"wall_total": 22886917,
"on_cpu_total": 646041,
"blocked_total": 22217542
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 625,
"on_cpu": 834,
"blocked": 0,
"wall_least": 542,
"wall_most": 1708,
"wall_total": 625,
"on_cpu_total": 834,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 1,
"most_calls": 1,
"wall": 3648083,
"on_cpu": 8334,
"blocked": 3633125,
"wall_least": 3136416,
"wall_most": 3886583,
"wall_total": 3648083,
"on_cpu_total": 8334,
"blocked_total": 3633125
}
]
}
},
{
"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": "simdgroup-lockstep-divergent-loop",
"calls": 7,
"in_calls": 3055708,
"on_cpu": 1662251,
"blocked": 1373583,
"elsewhere": 811916,
"spend": 3868999,
"spend_least": 3689045,
"spend_most": 4653167,
"per_call": [
{
"call": "buffer",
"least_calls": 2,
"most_calls": 2,
"wall": 1541,
"on_cpu": 1625,
"blocked": 0,
"wall_least": 1291,
"wall_most": 1625,
"wall_total": 5667,
"on_cpu_total": 5874,
"blocked_total": 0
},
{
"call": "compute_pipeline",
"least_calls": 1,
"most_calls": 1,
"wall": 1607292,
"on_cpu": 1488250,
"blocked": 119709,
"wall_least": 1568917,
"wall_most": 1648458,
"wall_total": 1607292,
"on_cpu_total": 1488250,
"blocked_total": 119709
},
{
"call": "dispatch",
"least_calls": 1,
"most_calls": 1,
"wall": 45083,
"on_cpu": 45291,
"blocked": 0,
"wall_least": 39334,
"wall_most": 51292,
"wall_total": 45083,
"on_cpu_total": 45291,
"blocked_total": 0
},
{
"call": "library",
"least_calls": 1,
"most_calls": 1,
"wall": 117334,
"on_cpu": 119291,
"blocked": 0,
"wall_least": 115416,
"wall_most": 127791,
"wall_total": 117334,
"on_cpu_total": 119291,
"blocked_total": 0
},
{
"call": "read_buffer",
"least_calls": 1,
"most_calls": 1,
"wall": 334,
"on_cpu": 542,
"blocked": 0,
"wall_least": 209,
"wall_most": 750,
"wall_total": 334,
"on_cpu_total": 542,
"blocked_total": 0
},
{
"call": "wait",
"least_calls": 1,
"most_calls": 1,
"wall": 1246916,
"on_cpu": 3667,
"blocked": 1240833,
"wall_least": 1114834,
"wall_most": 1630625,
"wall_total": 1246916,
"on_cpu_total": 3667,
"blocked_total": 1240833
}
]
}
}
]
}