// the use of this software, even if advised of the possibility of such damage.
//
//M*/
+
#include "perf_precomp.hpp"
using namespace perf;
typedef TestBaseWithParam<Size> dftFixture;
-PERF_TEST_P(dftFixture, DISABLED_dft, OCL_TYPICAL_MAT_SIZES) // TODO not implemented
+#ifdef HAVE_CLAMDFFT
+
+PERF_TEST_P(dftFixture, dft, OCL_TYPICAL_MAT_SIZES)
{
const Size srcSize = GetParam();
oclDst.download(dst);
- SANITY_CHECK(dst);
+ SANITY_CHECK(dst, 1.5);
}
else if (RUN_PLAIN_IMPL)
{
else
OCL_PERF_ELSE
}
+
+#endif
typedef TestBaseWithParam<Size> gemmFixture;
-PERF_TEST_P(gemmFixture, DISABLED_gemm,
- ::testing::Values(OCL_SIZE_1000, OCL_SIZE_2000)) // TODO not implemented
+#ifdef HAVE_CLAMDBLAS
+
+PERF_TEST_P(gemmFixture, gemm, ::testing::Values(OCL_SIZE_1000, OCL_SIZE_2000))
{
const Size srcSize = GetParam();
oclDst.download(dst);
- SANITY_CHECK(dst);
+ SANITY_CHECK(dst, 0.01);
}
else if (RUN_PLAIN_IMPL)
{
TEST_CYCLE() cv::gemm(src1, src2, 1.0, src3, 1.0, dst);
- SANITY_CHECK(dst);
+ SANITY_CHECK(dst, 0.01);
}
else
OCL_PERF_ELSE
}
+
+#endif
#include <vector>
#include <numeric>
+#include "cvconfig.h"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#ifdef HAVE_OPENCV_GPU
#define OCL_PERF_ELSE \
- if (RUN_GPU_IMPL) \
+ if (RUN_GPU_IMPL) \
CV_TEST_FAIL_NO_IMPL(); \
else \
CV_TEST_FAIL_NO_IMPL();