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
46b6a095
Commit
46b6a095
authored
Aug 26, 2014
by
Elena Gvozdeva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed perf test for ocl_gemm
parent
6d253a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
perf_gemm.cpp
modules/core/perf/opencl/perf_gemm.cpp
+7
-6
No files found.
modules/core/perf/opencl/perf_gemm.cpp
View file @
46b6a095
...
...
@@ -54,20 +54,21 @@ namespace ocl {
///////////// gemm ////////////////////////
typedef
tuple
<
Size
,
int
>
GemmParams
;
CV_ENUM
(
FlagType
,
0
,
GEMM_1_T
,
GEMM_2_T
,
GEMM_3_T
,
GEMM_1_T
|
GEMM_2_T
,
GEMM_2_T
|
GEMM_3_T
)
typedef
tuple
<
Size
,
FlagType
,
MatType
>
GemmParams
;
typedef
TestBaseWithParam
<
GemmParams
>
GemmFixture
;
OCL_PERF_TEST_P
(
GemmFixture
,
Gemm
,
::
testing
::
Combine
(
::
testing
::
Values
(
Size
(
1000
,
1000
),
Size
(
1500
,
1500
)),
Values
((
int
)
cv
::
GEMM_3_T
,
(
int
)
cv
::
GEMM_3_T
|
(
int
)
cv
::
GEMM_2_T
,
(
int
)
cv
::
GEMM_1_T
,
(
int
)
cv
::
GEMM_1_T
|
(
int
)
cv
::
GEMM_2_T
)))
::
testing
::
Values
(
Size
(
640
,
640
),
Size
(
1280
,
1280
)),
FlagType
::
all
(),
testing
::
Values
(
CV_32FC1
,
CV_32FC2
)))
{
GemmParams
params
=
GetParam
();
const
Size
srcSize
=
get
<
0
>
(
params
);
const
int
flags
=
get
<
1
>
(
params
);
const
int
type
=
get
<
2
>
(
params
);
UMat
src1
(
srcSize
,
CV_32FC1
),
src2
(
srcSize
,
CV_32FC1
),
src3
(
srcSize
,
CV_32FC1
),
dst
(
srcSize
,
CV_32FC1
);
UMat
src1
(
srcSize
,
type
),
src2
(
srcSize
,
type
),
src3
(
srcSize
,
type
),
dst
(
srcSize
,
type
);
declare
.
in
(
src1
,
src2
,
src3
).
out
(
dst
);
randu
(
src1
,
-
10.0
f
,
10.0
f
);
randu
(
src2
,
-
10.0
f
,
10.0
f
);
...
...
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