v2.12.0: the split follows free VRAM, not a hardcoded constant

Tests › tests/unit/inference/partial_offload_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/inference/partial_offload_test.cpp:33 · its file's page

What it checks (8)

  1. CHECK(layers > 15) observes partial_gpu_layers_for via layers
  2. CHECK(layers <= 40) observes partial_gpu_layers_for via layers
  3. CHECK(layers > 0) observes partial_gpu_layers_for via layers
  4. CHECK(layers < 15) observes partial_gpu_layers_for via layers
  5. CHECK(partial_gpu_layers_for(kQwen36Bytes, kGiB) == 0) observes partial_gpu_layers_for
  6. CHECK(partial_gpu_layers_for( kQwen36Bytes, kPartialOffloadReserveBytes) == 0) observes partial_gpu_layers_for
  7. CHECK(partial_gpu_layers_for(kQwen36Bytes, 64 * kGiB, 40) == 40) observes partial_gpu_layers_for
  8. CHECK(partial_gpu_layers_for(kQwen36Bytes, 64 * kGiB, 30) == 30) observes partial_gpu_layers_for

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

v2.12.0: the split follows free VRAM, not a hardcoded constant→WHEN→partial_gpu_layers_for

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

v2.12.0: the split follows free VRAM, not a hardcoded constant · 8 checksWHENfailure_detailREQ-API-012 · inferredpartial_gpu_layers_forREQ-INFER-019 · inferred
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.