gh#148: an offload with no room for compute buffers is refused

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:264 · its file's page

What it checks (6)

  1. CHECK(entropic::gpu_offload_refused( kQwen36Bytes, 15, 1ull * kGiB)) observes gpu_offload_refused
  2. CHECK(entropic::gpu_offload_refused( kQwen36Bytes, -1, entropic::kPartialOffloadReserveBytes)) observes gpu_offload_refused
  3. CHECK_FALSE(entropic::gpu_offload_refused( kQwen36Bytes, 15, 10248ull * 1024 * 1024)) observes gpu_offload_refused
  4. CHECK_FALSE( entropic::gpu_offload_refused(kQwen36Bytes, 0, 1ull * kGiB)) observes gpu_offload_refused
  5. CHECK_FALSE( entropic::gpu_offload_refused(kQwen36Bytes, 15, 0)) observes gpu_offload_refused
  6. CHECK_FALSE(entropic::gpu_offload_refused( kSmallModelBytes, 15, 1536ull * 1024 * 1024)) observes gpu_offload_refused

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

gh#148: an offload with no room for compute buffers is refused→WHEN→gpu_offload_refused

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.

gh#148: an offload with no room for compute buffers is refused · 6 checksWHENfailure_detailREQ-API-012 · inferredgpu_offload_refusedREQ-INFER-019 · inferred
Also reaches 2 requirements

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