| 256 | } |
| 257 | |
| 258 | void |
| 259 | parseEnv(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 | } |