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
1bdd86ed
Commit
1bdd86ed
authored
Dec 24, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3523 from jet47:fix-cuda-buffer-pool
parents
cddee22c
68e08bbe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
20 deletions
+3
-20
cuda.hpp
modules/core/include/opencv2/core/cuda.hpp
+1
-0
private.cuda.hpp
modules/core/include/opencv2/core/private.cuda.hpp
+2
-20
cuda_buffer_pool.cpp
modules/core/src/cuda_buffer_pool.cpp
+0
-0
cuda_stream.cpp
modules/core/src/cuda_stream.cpp
+0
-0
No files found.
modules/core/include/opencv2/core/cuda.hpp
View file @
1bdd86ed
...
...
@@ -490,6 +490,7 @@ private:
friend
struct
StreamAccessor
;
friend
class
BufferPool
;
friend
class
DefaultDeviceInitializer
;
};
class
CV_EXPORTS
Event
...
...
modules/core/include/opencv2/core/private.cuda.hpp
View file @
1bdd86ed
...
...
@@ -92,26 +92,6 @@ static inline void throw_no_cuda() { CV_Error(cv::Error::StsNotImplemented, "The
namespace
cv
{
namespace
cuda
{
class
MemoryStack
;
class
CV_EXPORTS
StackAllocator
:
public
GpuMat
::
Allocator
{
public
:
explicit
StackAllocator
(
cudaStream_t
stream
);
~
StackAllocator
();
bool
allocate
(
GpuMat
*
mat
,
int
rows
,
int
cols
,
size_t
elemSize
);
void
free
(
GpuMat
*
mat
);
private
:
StackAllocator
(
const
StackAllocator
&
);
StackAllocator
&
operator
=
(
const
StackAllocator
&
);
cudaStream_t
stream_
;
MemoryStack
*
memStack_
;
size_t
alignment_
;
};
class
CV_EXPORTS
BufferPool
{
public
:
...
...
@@ -120,6 +100,8 @@ namespace cv { namespace cuda
GpuMat
getBuffer
(
int
rows
,
int
cols
,
int
type
);
GpuMat
getBuffer
(
Size
size
,
int
type
)
{
return
getBuffer
(
size
.
height
,
size
.
width
,
type
);
}
GpuMat
::
Allocator
*
getAllocator
()
const
{
return
allocator_
;
}
private
:
GpuMat
::
Allocator
*
allocator_
;
};
...
...
modules/core/src/cuda_buffer_pool.cpp
deleted
100644 → 0
View file @
cddee22c
This diff is collapsed.
Click to expand it.
modules/core/src/cuda_stream.cpp
View file @
1bdd86ed
This diff is collapsed.
Click to expand it.
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