| 4363 | */ |
| 4364 | |
| 4365 | void validate_envVarPermitNodesToShareGpu(string varValue, const char* caller) { |
| 4366 | |
| 4367 | // though caller should gaurantee varValue contains at least one character, |
| 4368 | // we'll still check to avoid a segfault if this gaurantee is broken |
| 4369 | bool isValid = (varValue.size() == 1) && (varValue[0] == '0' || varValue[0] == '1'); |
| 4370 | assertThat(isValid, report::INVALID_PERMIT_NODES_TO_SHARE_GPU_ENV_VAR, caller); |
| 4371 | } |
| 4372 | |
| 4373 | void validate_envVarDefaultValidationEpsilon(string varValue, const char* caller) { |
| 4374 |
no test coverage detected