At f11d6455e0 each kernel row opened its own runtime instance and device
under the validation layer. A sweep of about 900 kernel rows made about
900 instances and devices. Each instance's layer also opened its own log
file and kept it open after the instance was destroyed: one file
descriptor a row (the 3090, job 67374: 5 descriptors to 24 over 20 rows).
The form the 1b brief asks for is one runtime device of the sweep's kind,
with each row's ComputePipelineState and its dispatch made on it.
candidate::RuntimeKernels is that device:
- open makes the instance (restricted where the process is) and the
device. The validation layer's variables are set only while the instance
is made (runtime::under_validation_variables), and the layer logs to the
process's one log for the device's life;
- accept makes one row's state and encodes its dispatch, as before. The
row's messages are what the log gained during the row, so a message
still makes that row INVALID_USAGE;
- finish drops the device and waits for its teardown. A message logged
at the teardown fails the sweep.
A message logged while the device opens stops the sweep before any row,
because no row on that device would be evidence.
corpus-pipeline opens it at the sweep's first kernel row, so a render-only
sweep opens none, and finishes it after the last row. Render rows keep
their own context.
runtime::opened is split into made_device and torn_down for the held
device; the per-row executors keep opened. create_runtime_kernel is
removed. The device tests make two kernel rows on one device.