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

Function validate_envVarPermitNodesToShareGpu

quest/src/core/validation.cpp:4365–4371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4363 */
4364
4365void 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
4373void validate_envVarDefaultValidationEpsilon(string varValue, const char* caller) {
4374

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected