MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / forceMemoryCleanup

Function forceMemoryCleanup

tests/test_vram_resize.cpp:23–27  ·  view source on GitHub ↗

Force CUDA memory cleanup via the shared library's pool instance

Source from the content-addressed store, hash-verified

21
22 // Force CUDA memory cleanup via the shared library's pool instance
23 void forceMemoryCleanup() {
24 cudaDeviceSynchronize();
25 Tensor::trim_memory_pool();
26 cudaDeviceSynchronize();
27 }
28
29} // namespace
30

Callers 3

SetUpMethod · 0.85
TearDownMethod · 0.85
TEST_FFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected