-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed all perf-db creations to be lazy #3212
base: develop
Are you sure you want to change the base?
Conversation
src/include/miopen/mlo_internal.hpp
Outdated
MIOPEN_INTERNALS_EXPORT auto MakeConvDbGetter(const ExecutionContext& ctx) | ||
-> std::function<PerformanceDb&()>; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[R] I think we shouldn't add new things into this file. This file has confusing name, also it probably has a license problem.
}; | ||
} | ||
|
||
ConvSolution FindSolution(const ExecutionContext& ctx, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add #define FIN_ANY_SOLVER_FIND_SOLUTION_COMPAT 1
and wrap old FindSolution()
with #if/#endif
.
This code should be removed after the Fin
is fixed.
This makes find or similar invokations to not construct any db instance when no tunable solver is applicable or in similar cases. Basically it removes redundant prefetches. After #3078 this can also delay any potential waiting for the db being prefetched, which can reduce expected delays even further.