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

Function access_envs

src/env.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30inline namespace MIGRAPHX_INLINE_NS {
31
32static auto access_envs()
33{
34 static std::map<std::string, std::string> obj;
35 static std::mutex m;
36 return [&](auto f) {
37 std::lock_guard<std::mutex> lock(m);
38 return f(obj);
39 };
40}
41
42bool enabled(const char* name)
43{

Callers 4

enabledFunction · 0.85
value_ofFunction · 0.85
string_value_ofFunction · 0.85
get_all_envsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected