Free host memory only when releasing an iGPU model #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ram-69-igpu-unload-delta"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the iGPU unload-delta drift found while reviewing #35.
The bug
With
igpu = true,inventory()attributes a loaded model's whole size to host RAM and reports no device memory, butoperation()still split the projection into host and device usingsize_vram_bytes. The fallback projected relief into device memory that does not exist on an iGPU, so the projected effect disagreed with the measured effect.The fix
On an
igpuendpoint the whole model size is projected as host relief and device relief is zero. A discrete or CPU endpoint is unchanged. A test asserts the projection against the two-model fixture.Verification
All pass.
Closes #36