MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / parseEnv

Function parseEnv

src/tests/cmdline.c:258–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void
259parseEnv(TestParams *params)
260{
261 const char *str;
262 int createImages = 0;
263
264 str = getenv("AMD_CLBLAS_GEMM_IMPLEMENTATION");
265 if ((str != NULL) && (strcmp(str, "1") == 0)) {
266 createImages = 1;
267 }
268 str = getenv("AMD_CLBLAS_TRMM_IMPLEMENTATION");
269 if ((str != NULL) && (strcmp(str, "1") == 0)) {
270 createImages = 1;
271 }
272 str = getenv("AMD_CLBLAS_TRSM_IMPLEMENTATION");
273 if ((str != NULL) && (strcmp(str, "1") == 0)) {
274 createImages = 1;
275 }
276
277 params->optFlags = NO_FLAGS;
278 if (createImages) {
279 params->optFlags |= SET_USE_IMAGES;
280 }
281}

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected