Added check AmdFft version to be sure that AmdFft binaries are available
This commit is contained in:
@@ -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 &)
|
||||||
|
Reference in New Issue
Block a user