MCPcopy Create free account
hub / github.com/Niko1221/Strata / env_on

Function env_on

engine/src/core/verify.cpp:353–356  ·  view source on GitHub ↗

#649 (HIP, opt-in A/Bs for the gfx1030 verify timeouts; CUDA never reads them) STRATA_VERIFY_COHERENT=1 the handshake words and rows in explicitly coherent (fine-grained) host memory STRATA_DOORBELL_STORE=1 the GPU stores each step's ring instead of read-modify-writing it over PCIe

Source from the content-addressed store, hash-verified

351// STRATA_VERIFY_COHERENT=1 the handshake words and rows in explicitly coherent (fine-grained) host memory
352// STRATA_DOORBELL_STORE=1 the GPU stores each step's ring instead of read-modify-writing it over PCIe
353bool env_on(const char* name) {
354 const char* e = std::getenv(name);
355 return e != nullptr && e[0] != 0 && e[0] != '0';
356}
357#if defined(STRATA_USE_HIP)
358const bool g_coherent = env_on("STRATA_VERIFY_COHERENT");
359const bool g_doorbell_store = env_on("STRATA_DOORBELL_STORE");

Callers 7

verify.cppFile · 0.70
batch_self_commit_onFunction · 0.70
qsa_slots_onFunction · 0.70
batch_qsa_stream_opt_onFunction · 0.70
batch_side_mixer_onFunction · 0.70
captureMethod · 0.70
runMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected