MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / load

Method load

src/targets/gpu/problem_cache.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37MIGRAPHX_DECLARE_ENV_VAR(MIGRAPHX_PROBLEM_CACHE)
38
39void problem_cache::load()
40{
41 auto pc_path = string_value_of(MIGRAPHX_PROBLEM_CACHE{});
42 if(pc_path.empty())
43 return;
44 if(not fs::exists(pc_path))
45 {
46 std::cout << "Problem cache not found. Creating new file.\n";
47 save();
48 return;
49 }
50 from_value(from_json_string(read_string(pc_path)), cache);
51}
52void problem_cache::save() const
53{
54 auto pc_path = string_value_of(MIGRAPHX_PROBLEM_CACHE{});

Callers 1

load_problem_cacheMethod · 0.45

Calls 6

from_valueFunction · 0.85
from_json_stringFunction · 0.85
read_stringFunction · 0.85
string_value_ofFunction · 0.50
saveFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected