Commit d4e6812b authored by Alexander Karsakov's avatar Alexander Karsakov

Added check AmdFft version to be sure that AmdFft binaries are available

parent 57fec2f2
...@@ -1581,7 +1581,11 @@ protected: ...@@ -1581,7 +1581,11 @@ protected:
{ {
try try
{ {
cl_uint major, minor, patch;
CV_Assert(clAmdFftInitSetupData(&setupData) == CLFFT_SUCCESS); CV_Assert(clAmdFftInitSetupData(&setupData) == CLFFT_SUCCESS);
// it throws exception in case AmdFft binaries are not found
CV_Assert(clAmdFftGetVersion(&major, &minor, &patch) == CLFFT_SUCCESS);
g_isAmdFftAvailable = true; g_isAmdFftAvailable = true;
} }
catch (const Exception &) catch (const Exception &)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment