mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
Added check AmdFft version to be sure that AmdFft binaries are available
This commit is contained in:
parent
57fec2f2da
commit
d4e6812be2
@ -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 &)
|
||||
|
Loading…
Reference in New Issue
Block a user