| 31 | class VRAMResizeTest : public ::testing::Test { |
| 32 | protected: |
| 33 | void SetUp() override { |
| 34 | // Warm up allocator (slab init is lazy, ~288MB) |
| 35 | { auto _ = Tensor::empty({1}, Device::CUDA); } |
| 36 | forceMemoryCleanup(); |
| 37 | auto [used, total] = getGPUMemoryMB(); |
| 38 | baseline_vram_mb_ = used; |
| 39 | LOG_INFO("Baseline VRAM: {} MB / {} MB", used, total); |
| 40 | } |
| 41 | |
| 42 | void TearDown() override { |
| 43 | forceMemoryCleanup(); |
nothing calls this directly
no test coverage detected