MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / envvars_validateAndLoadEnvVars

Function envvars_validateAndLoadEnvVars

quest/src/core/envvars.cpp:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132void envvars_validateAndLoadEnvVars(const char* caller) {
133
134 // error if loaded twice since this indicates spaghetti
135 if (global_areEnvVarsLoaded)
136 error_envVarsAlreadyLoaded();
137
138 // load all env-vars
139 validateAndSetWhetherGpuSharingIsPermitted(caller);
140 validateAndSetDefaultValidationEpsilon(caller);
141
142 // ensure no re-loading
143 global_areEnvVarsLoaded = true;
144}
145
146
147bool envvars_getWhetherGpuSharingIsPermitted() {

Callers 1

Tested by

no test coverage detected