Validation: an L4 kernel row is made through the runtime, its pipeline state and one encoded dispatch
corpus-pipeline asked the driver for a kernel row's compute pipeline at
the region the binder planned for one representative dispatch
(acceptance::dispatch), and tallied the binder's answer (BIND_REFUSED,
BIND_ERROR). That is not the pipeline a guest's kernel gets. A kernel row
is now made as a guest's kernel is made (platform::runtime_acceptance):
- the row's AIR becomes a runtime library, and its function is
specialized with the row's function-constant values;
- one ComputePipelineState is made on the sweep's device, restricted to
--profiles-layer's profile where one is given;
- one dispatch of one threadgroup of the state's thread execution width
(or its maxTotalThreadsPerThreadgroup where that is fewer) is encoded
into a command buffer that is dropped uncommitted, so the runtime picks
the module that threadgroup runs on, asks the driver for its pipeline,
and nothing executes.
The verdicts:
- The creation time is the runtime's own count of it
(pipeline_creation_nanos).
- A message from the validation layer is INVALID_USAGE.
- A Vulkan error is REFUSED.
- The runtime's typed refusal (the translator's, a known gap, a limit) is
RUNTIME_REFUSED, counted.
- A kernel the runtime runs as Metal's without effects, and makes no
pipeline for, is NO_EFFECT, counted.
The row still compiles in its compile worker first, for its words, its
outcome, --compile-only and --keep-modules. The make runs in the sweep's
process, held to the per-attempt ceilings (runtime::within_ceilings).
Removed:
- acceptance::dispatch (plan_compute_row, ComputeCreation, NoCreation,
BinderAnswer);
- RowCompile::Binder and UnmodelledKind::Dispatch;
- the tally's bind_refused and bind_errors, and the detail's
imageblock=WxH;
- the own context's compute arm of create_acceptance_pipeline, which now
takes a render pipeline, with its region test.
The summary line's bind_refused= and bind_errors= become
runtime_refused= and no_effect=.
What is lost: L4 kernel acceptance on Mesa's drm-shim drivers (RADV, ANV
and NVK), which stood for hardware we do not own. The runtime does not
open those devices, so the rung runs on lavapipe and the real cards
only. NVK is lost entirely: the shim was its only venue, and it never
ran here.
Committed rows removed: none. No L4 row is committed. Counted by
environment over corpus/observations/vulkan and observations/refusals at
bcc88a43cf, there are 55 rows in 6 environments (the 780M, Iris Xe,
RTX 5080 Laptop twice, lavapipe twice), and none is from a drm-shim
environment.
This commit is contained in:
1 parent
9a01f1e8ee
commit
71f93243d9
13 files changed
+570
-920
No files matched your search
+9
-2
@@ -411,8 +411,15 @@ cargo run --release -p metal2vulkan-validation --bin corpus-triage -- \
|
||||
|
||||
Other corpus tools:
|
||||
|
||||
- `corpus-pipeline --device-type cpu|gpu --profile P` asks a Vulkan driver to create each
|
||||
translated pipeline, without dispatching anything (driver acceptance).
|
||||
- `corpus-pipeline --device-type cpu|gpu --profile P` is driver acceptance (L4), on lavapipe and
|
||||
the real cards. It compiles each row in a compile worker, then asks the device's driver for its
|
||||
pipeline. A render row's pipeline is created from the binder layout its artifact carries, with
|
||||
nothing drawn. A kernel row is made as a guest's kernel is, through the runtime: its
|
||||
`ComputePipelineState` on the device, and one dispatch of one representative threadgroup (the
|
||||
state's thread execution width of threads) encoded into a command buffer that is never
|
||||
committed, so the driver is asked for the pipeline that dispatch runs on and nothing executes.
|
||||
The runtime's typed refusal of a kernel row is `RUNTIME_REFUSED`, and a kernel that writes no
|
||||
memory, which the runtime makes no pipeline for, is `NO_EFFECT`; both are counted.
|
||||
- `--profiles-layer P` (on `corpus-vulkan` and `corpus-pipeline`) runs every context through
|
||||
`VK_LAYER_KHRONOS_profiles` restricted to a committed profile, to test a profile on a device that
|
||||
exceeds it.
|
||||
|
||||
Reference in new issue
Block a user