MCPcopy Create free account
hub / github.com/dmlc/xgboost / DeleteCacheFiles

Function DeleteCacheFiles

src/data/sparse_page_source.h:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87};
88
89inline void DeleteCacheFiles(std::map<std::string, std::shared_ptr<Cache>> const& cache_info) {
90 for (auto const& kv : cache_info) {
91 CHECK(kv.second);
92 auto n = kv.second->ShardName();
93 if (kv.second->OnHost()) {
94 continue;
95 }
96 TryDeleteCacheFile(n);
97 }
98}
99
100[[nodiscard]] inline std::string MakeId(std::string prefix, void const* ptr) {
101 std::stringstream ss;

Callers 2

~SparsePageDMatrixMethod · 0.85

Calls 3

TryDeleteCacheFileFunction · 0.85
ShardNameMethod · 0.80
OnHostMethod · 0.80

Tested by

no test coverage detected