| 92 | |
| 93 | |
| 94 | void validateAndSetWhetherGpuSharingIsPermitted(const char* caller) { |
| 95 | |
| 96 | // permit unspecified, falling back to default value |
| 97 | string name = envvar_names::PERMIT_NODES_TO_SHARE_GPU; |
| 98 | if (!isEnvVarSpecified(name)) |
| 99 | return; |
| 100 | |
| 101 | // otherwise ensure value == '0' or '1' precisely (no whitespace) |
| 102 | string value = getSpecifiedEnvVarValue(name); |
| 103 | validate_envVarPermitNodesToShareGpu(value, caller); |
| 104 | |
| 105 | // overwrite default env-var value |
| 106 | envvar_values::PERMIT_NODES_TO_SHARE_GPU = (value[0] == '1'); |
| 107 | } |
| 108 | |
| 109 | |
| 110 | void validateAndSetDefaultValidationEpsilon(const char* caller) { |
no test coverage detected