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

This commit is contained in:
Alexander Karsakov 2014-08-29 14:23:18 +04:00
parent 57fec2f2da
commit d4e6812be2

View File

@ -1581,7 +1581,11 @@ protected:
{
try
{
cl_uint major, minor, patch;
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;
}
catch (const Exception &)