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

Function assertMatrixDeployFlagsRecognised

quest/src/core/validation.cpp:1791–1798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1789 */
1790
1791void assertMatrixDeployFlagsRecognised(int isDistrib, int isGpuAccel, int isMultithread, const char* caller) {
1792
1793 // deployment flags must be boolean or auto
1794 tokenSubs vars = {{"${AUTO_DEPLOYMENT_FLAG}", modeflag::USE_AUTO}};
1795 assertThat(isDistrib == 0 || isDistrib == 1 || isDistrib == modeflag::USE_AUTO, report::INVALID_OPTION_FOR_MATRIX_IS_DISTRIB, vars, caller);
1796 assertThat(isGpuAccel == 0 || isGpuAccel == 1 || isGpuAccel == modeflag::USE_AUTO, report::INVALID_OPTION_FOR_MATRIX_IS_GPU_ACCEL, vars, caller);
1797 assertThat(isMultithread == 0 || isMultithread == 1 || isMultithread == modeflag::USE_AUTO, report::INVALID_OPTION_FOR_MATRIX_IS_MULTITHREAD, vars, caller);
1798}
1799
1800void assertMatrixDeploysEnabledByEnv(int isDistrib, int isGpuAccel, int isMultithread, QuESTEnv env, const char* caller) {
1801

Callers 1

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected