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
3316e583
Commit
3316e583
authored
Aug 06, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more test loops (and disable tests - tests pass but require a lot of time)
parent
8293ed7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
test_umat.cpp
modules/core/test/test_umat.cpp
+6
-4
No files found.
modules/core/test/test_umat.cpp
View file @
3316e583
...
...
@@ -1029,14 +1029,14 @@ TEST(UMat, map_unmap_counting)
///////////// oclCleanupCallback threadsafe check (#5062) /////////////////////
// Case 1: reuse of old src Mat in OCL pipe. Hard to catch!
OCL_TEST
(
UMat
,
OCL_ThreadSafe_CleanupCallback_1_VeryLongTest
)
OCL_TEST
(
UMat
,
DISABLED_
OCL_ThreadSafe_CleanupCallback_1_VeryLongTest
)
{
if
(
!
cv
::
ocl
::
useOpenCL
())
{
std
::
cout
<<
"OpenCL is not enabled. Skip test"
<<
std
::
endl
;
return
;
}
for
(
int
j
=
0
;
j
<
test_loop_times
;
j
++
)
for
(
int
j
=
0
;
j
<
100
;
j
++
)
{
const
Size
srcSize
(
320
,
240
);
const
int
type
=
CV_8UC1
;
...
...
@@ -1060,18 +1060,19 @@ OCL_TEST(UMat, OCL_ThreadSafe_CleanupCallback_1_VeryLongTest)
}
EXPECT_MAT_NEAR
(
dst_ref
,
dst
,
1
);
printf
(
".
\n
"
);
fflush
(
stdout
);
}
}
// Case 2: concurent deallocation of UMatData between UMat and Mat deallocators. Hard to catch!
OCL_TEST
(
UMat
,
OCL_ThreadSafe_CleanupCallback_2_VeryLongTest
)
OCL_TEST
(
UMat
,
DISABLED_
OCL_ThreadSafe_CleanupCallback_2_VeryLongTest
)
{
if
(
!
cv
::
ocl
::
useOpenCL
())
{
std
::
cout
<<
"OpenCL is not enabled. Skip test"
<<
std
::
endl
;
return
;
}
for
(
int
j
=
0
;
j
<
test_loop_times
;
j
++
)
for
(
int
j
=
0
;
j
<
100
;
j
++
)
{
const
Size
srcSize
(
320
,
240
);
const
int
type
=
CV_8UC1
;
...
...
@@ -1090,6 +1091,7 @@ OCL_TEST(UMat, OCL_ThreadSafe_CleanupCallback_2_VeryLongTest)
}
::
cv
::
ocl
::
finish
();
// force kernel to complete to start cleanup sooner
}
printf
(
".
\n
"
);
fflush
(
stdout
);
}
}
...
...
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