Commit 62f8b0fc authored by yao's avatar yao

Fix ocl::dft error when program end on Linux

parent 620c6994
...@@ -54,6 +54,9 @@ void cv::ocl::dft(const oclMat&, oclMat&, Size, int) ...@@ -54,6 +54,9 @@ void cv::ocl::dft(const oclMat&, oclMat&, Size, int)
{ {
CV_Error(CV_StsNotImplemented, "OpenCL DFT is not implemented"); CV_Error(CV_StsNotImplemented, "OpenCL DFT is not implemented");
} }
namespace cv { namespace ocl {
void fft_teardown(){}
}}
#else #else
#include "clAmdFft.h" #include "clAmdFft.h"
namespace cv namespace cv
......
...@@ -65,6 +65,7 @@ namespace cv ...@@ -65,6 +65,7 @@ namespace cv
{ {
namespace ocl namespace ocl
{ {
extern void fft_teardown();
/* /*
* The binary caching system to eliminate redundant program source compilation. * The binary caching system to eliminate redundant program source compilation.
* Strictly, this is not a cache because we do not implement evictions right now. * Strictly, this is not a cache because we do not implement evictions right now.
...@@ -877,6 +878,7 @@ namespace cv ...@@ -877,6 +878,7 @@ namespace cv
} }
void Info::release() void Info::release()
{ {
fft_teardown();
if(impl->oclplatform) if(impl->oclplatform)
{ {
impl->oclplatform = 0; impl->oclplatform = 0;
......
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