MCPcopy Create free account
hub / github.com/Niko1221/Strata / free

Method free

engine/src/core/session.cpp:601–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601void SessionLoopScratch::free() {
602 // Restores the caller's affinity on every path, including teardown: a library that silently leaves its
603 // caller's thread nailed to one core is worse than one that never pinned at all.
604 if (pinned) {
605 strata::kernels::cpu::restore_thread_affinity(pinned_core);
606 pinned = false;
607 pinned_core = {};
608 }
609 if (probe != nullptr) { cudaEventDestroy(probe); probe = nullptr; }
610 if (y_miss != nullptr) { cudaFreeHost(y_miss); y_miss = nullptr; }
611 parts_bytes = 0;
612}
613
614bool session_loop(const ModelGeometry& g, int64_t pos, int32_t pos_base, SessionState& s, SessionGraphs& gr,
615 PoolFn pool, HitFn hits, void* user, bool overlap, void* stream, std::string& err,

Callers 15

encode_image_fileMethod · 0.45
releaseMethod · 0.45
initMethod · 0.45
encodeMethod · 0.45
unloadMethod · 0.45
bench_gemvFunction · 0.45
~LocalFreeMethod · 0.45
unloadMethod · 0.45
encodeMethod · 0.45
releaseMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

restore_thread_affinityFunction · 0.50
cudaEventDestroyFunction · 0.50
cudaFreeHostFunction · 0.50

Tested by 10

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
bwFunction · 0.36
bwsizeFunction · 0.36
dispatchFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36