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

Function enabled

src/env.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42bool enabled(const char* name)
43{
44 auto e = env(name);
45 if(e.empty() or not contains({"1", "enable", "enabled", "yes", "true"}, e.front()))
46 return false;
47 access_envs()([&](auto& m) { m[name] = e.front(); });
48 return true;
49}
50
51bool disabled(const char* name) { return not enabled(name); }
52

Callers 15

~tmp_dirMethod · 0.70
disabledFunction · 0.70
compileMethod · 0.70
applyMethod · 0.70
applyMethod · 0.70
run_passMethod · 0.70
run_passesFunction · 0.70
applyMethod · 0.70
applyMethod · 0.70
verify_argsFunction · 0.70
try_compute_shapeFunction · 0.70
remove_contiguousFunction · 0.70

Calls 5

envFunction · 0.85
containsFunction · 0.85
access_envsFunction · 0.85
frontMethod · 0.80
emptyMethod · 0.45

Tested by 3

TEST_CASEFunction · 0.40
mainFunction · 0.40