Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
722bdc52
Commit
722bdc52
authored
Sep 04, 2013
by
ilya-lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled gemm and dft erf test
parent
c42d61e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
perf_fft.cpp
modules/ocl/perf/perf_fft.cpp
+7
-2
perf_gemm.cpp
modules/ocl/perf/perf_gemm.cpp
+7
-4
perf_precomp.hpp
modules/ocl/perf/perf_precomp.hpp
+2
-1
No files found.
modules/ocl/perf/perf_fft.cpp
View file @
722bdc52
...
...
@@ -43,6 +43,7 @@
// the use of this software, even if advised of the possibility of such damage.
//
//M*/
#include "perf_precomp.hpp"
using
namespace
perf
;
...
...
@@ -51,7 +52,9 @@ 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
();
...
...
@@ -70,7 +73,7 @@ PERF_TEST_P(dftFixture, DISABLED_dft, OCL_TYPICAL_MAT_SIZES) // TODO not impleme
oclDst
.
download
(
dst
);
SANITY_CHECK
(
dst
);
SANITY_CHECK
(
dst
,
1.5
);
}
else
if
(
RUN_PLAIN_IMPL
)
{
...
...
@@ -81,3 +84,5 @@ PERF_TEST_P(dftFixture, DISABLED_dft, OCL_TYPICAL_MAT_SIZES) // TODO not impleme
else
OCL_PERF_ELSE
}
#endif
modules/ocl/perf/perf_gemm.cpp
View file @
722bdc52
...
...
@@ -51,8 +51,9 @@ using namespace perf;
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
();
...
...
@@ -72,14 +73,16 @@ PERF_TEST_P(gemmFixture, DISABLED_gemm,
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
modules/ocl/perf/perf_precomp.hpp
View file @
722bdc52
...
...
@@ -59,6 +59,7 @@
#include <vector>
#include <numeric>
#include "cvconfig.h"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
...
...
@@ -93,7 +94,7 @@ using namespace cv;
#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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment