[ROCm] fix bug in miopen findAlgorithm. (#46852)
Summary:
findAlgorithm should return if and only if a suitable algorithm is found.
The default algorithm is not guaranteed to have been cached.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46852
Reviewed By: izdeby
Differential Revision: D24546748
Pulled By: bhosmer
fbshipit-source-id: 171137b377193e0825769b61d42a05016f02c34c