)]}'
{
  "commit": "40a269e2c841a6085816597467d89bb14f60e5ee",
  "tree": "0bdf4e6d22855bb9f5e080a71ffdf3ead4915109",
  "parents": [
    "4dba6d754d51a881b09cf4b2aa0e4ddcf4354f93"
  ],
  "author": {
    "name": "Ben Vanik",
    "email": "ben.vanik@gmail.com",
    "time": "Tue Apr 28 11:45:37 2026 -0700"
  },
  "committer": {
    "name": "Ben Vanik",
    "email": "ben.vanik@gmail.com",
    "time": "Wed Apr 29 13:46:12 2026 -0700"
  },
  "message": "[HAL/AMDGPU] Name prepublished kernarg storage\n\nReusable AQL command buffers were materializing prepublished kernarg templates by asking the HAL allocator for DEVICE_LOCAL|HOST_VISIBLE memory and trusting the AMDGPU allocator to resolve that to a fine-grained host-coherent device pool. That was the right local outcome, but the contract was anonymous: a future allocator policy change could silently put template bytes behind a non-coherent mapping and make replay correctness depend on a late flush branch.\n\nIntroduce a small AQL prepublished-kernarg storage strategy and record the current device-fine host-coherent strategy on each physical device. Logical-device command-buffer creation passes the selected strategy into the command buffer after queue affinity has been normalized to one physical device, and recording only prepublishes reusable static dispatches when the strategy is enabled.\n\nFinalization now requests DEVICE_LOCAL|HOST_VISIBLE|HOST_COHERENT explicitly and verifies that the returned AMDGPU buffer actually has those memory-type bits before copying templates. The old non-coherent flush fallback is gone because it was not a real strategy. Missing fine-grained device-local pools also get explicit allocator and physical-device diagnostics instead of an opaque pool lookup failure.\n\nThe low-level command-buffer tests now use a real heap allocator instead of constructing command buffers with a null allocator, preserving the production object invariant while keeping prepublish storage disabled for tests that only exercise recording or block processing. Add a host-queue integration check for the recorded device-fine strategy alongside the existing real prepublished-dispatch execution test.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "53ce1e1b583d178b17ce535fc1c444f7753e6399",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/BUILD.bazel",
      "new_id": "d4bb6fb6ab1f36c043ef6499088cf82c3e410aa0",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "45d8689097a2e823520d497dba6b95d663f9203b",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/CMakeLists.txt",
      "new_id": "a6fb9fb3c65962826a4408c7c12e9f13519728c5",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "21a26fcdc08a8aa3091699a7e46d22be621fb6ad",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/allocator.c",
      "new_id": "6a729109cad61df776b9362d80c583835cf1ff52",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/allocator.c"
    },
    {
      "type": "modify",
      "old_id": "84dd9ce2190396a3d86f36920bcee84a194f5a56",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/aql_block_processor_test.cc",
      "new_id": "86429e4285a87d6f39bdb4908caf905f40c7b6dc",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/aql_block_processor_test.cc"
    },
    {
      "type": "modify",
      "old_id": "b778e717584a837d14e8842d421882731ef8681d",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer.c",
      "new_id": "14cab5988d2e254e22465e23d514b4dfa15e24ca",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer.c"
    },
    {
      "type": "modify",
      "old_id": "c24ba635d7cfc241ec85dda03dbf4a4afa39291e",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer.h",
      "new_id": "1cec5e874a4be3bb509a52b819a279952d648cd5",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer.h"
    },
    {
      "type": "modify",
      "old_id": "6190436389167332f1de961949784b3d2f3a90da",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer_test.cc",
      "new_id": "d423d74a412a5f82e1e90ca3593dfc2f278ed77f",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/aql_command_buffer_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8cb3bfe18dcdd01c37061548bb5bfd2b564d5fc4",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/aql_prepublished_kernarg_storage.h"
    },
    {
      "type": "modify",
      "old_id": "7765c319112c3e008a54f6a6c071f49eb05b84ce",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/host_queue_command_buffer_test.cc",
      "new_id": "0dbd2026e8a4b06945be1d039cef25475679e87c",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/host_queue_command_buffer_test.cc"
    },
    {
      "type": "modify",
      "old_id": "f715c8a38089d05810726cbefdeeb764a0b85d51",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/logical_device.c",
      "new_id": "8270f804b53b21a58741641bc3fca89a64b134ce",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/logical_device.c"
    },
    {
      "type": "modify",
      "old_id": "121d1c98a9d7049f0e259ffc7f384098f0f5c47b",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/physical_device.c",
      "new_id": "e0f3ae54c080df0143d1081226434607206e1a04",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/physical_device.c"
    },
    {
      "type": "modify",
      "old_id": "eab38f3e0ee55054e6e7d40a8319e70d725894f3",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/drivers/amdgpu/physical_device.h",
      "new_id": "9d0afce14498dbb5d05b48de83ee585ed8da5d15",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/drivers/amdgpu/physical_device.h"
    }
  ]
}
