| 130 | |
| 131 | |
| 132 | void 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 | |
| 147 | bool envvars_getWhetherGpuSharingIsPermitted() { |
no test coverage detected