Need to figure out the right place to call this routine
| 345 | |
| 346 | // Need to figure out the right place to call this routine |
| 347 | static void Clear() { |
| 348 | absl::MutexLock lock{&cached_plans_mutex}; |
| 349 | |
| 350 | for (auto it : cached_plans) { |
| 351 | auto status = wrap::miopenDestroyFusionPlan(it.second); |
| 352 | if (status != miopenStatusSuccess) { |
| 353 | LOG(FATAL) << "call to miopenDestroyFusionPlan failed: " |
| 354 | << ToString(status); |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | cached_plans.clear(); |
| 359 | |
| 360 | unsupported_plans.clear(); |
| 361 | } |
| 362 | |
| 363 | // Is the Fusion plan corresponding to this hash unsupported |
| 364 | static bool IsUnsupportedFusionPlan(uint64 hash) { |