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

Method save

src/targets/gpu/problem_cache.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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{});
55 if(pc_path.empty())
56 return;
57 write_string(pc_path, to_pretty_json_string(to_value(cache)));
58}
59
60static value create_key(const std::string& name, const value& problem)
61{

Callers 2

compile_planClass · 0.45

Calls 5

write_stringFunction · 0.85
to_pretty_json_stringFunction · 0.85
string_value_ofFunction · 0.50
to_valueFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected