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
64c94cb2
Commit
64c94cb2
authored
Dec 19, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CUDA related func tables refactored to remove unneeded dependencies.
parent
6da7c50f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
gpumat.cpp
modules/core/src/gpumat.cpp
+15
-15
gpumat_cuda.hpp
modules/core/src/gpumat_cuda.hpp
+0
-0
No files found.
modules/core/src/gpumat.cpp
View file @
64c94cb2
...
...
@@ -239,23 +239,23 @@ static DeviceInfoFuncTable* deviceInfoFuncTable()
//////////////////////////////// Initialization & Info ////////////////////////
int
cv
::
gpu
::
getCudaEnabledDeviceCount
()
{
return
gpu
FuncTable
()
->
getCudaEnabledDeviceCount
();
}
int
cv
::
gpu
::
getCudaEnabledDeviceCount
()
{
return
deviceInfo
FuncTable
()
->
getCudaEnabledDeviceCount
();
}
void
cv
::
gpu
::
setDevice
(
int
device
)
{
gpu
FuncTable
()
->
setDevice
(
device
);
}
int
cv
::
gpu
::
getDevice
()
{
return
gpu
FuncTable
()
->
getDevice
();
}
void
cv
::
gpu
::
setDevice
(
int
device
)
{
deviceInfo
FuncTable
()
->
setDevice
(
device
);
}
int
cv
::
gpu
::
getDevice
()
{
return
deviceInfo
FuncTable
()
->
getDevice
();
}
void
cv
::
gpu
::
resetDevice
()
{
gpu
FuncTable
()
->
resetDevice
();
}
void
cv
::
gpu
::
resetDevice
()
{
deviceInfo
FuncTable
()
->
resetDevice
();
}
bool
cv
::
gpu
::
deviceSupports
(
FeatureSet
feature_set
)
{
return
gpu
FuncTable
()
->
deviceSupports
(
feature_set
);
}
bool
cv
::
gpu
::
deviceSupports
(
FeatureSet
feature_set
)
{
return
deviceInfo
FuncTable
()
->
deviceSupports
(
feature_set
);
}
bool
cv
::
gpu
::
TargetArchs
::
builtWith
(
FeatureSet
feature_set
)
{
return
gpu
FuncTable
()
->
builtWith
(
feature_set
);
}
bool
cv
::
gpu
::
TargetArchs
::
has
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
has
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasPtx
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasBin
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasBin
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrLessPtx
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasEqualOrLessPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreater
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasEqualOrGreater
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreaterPtx
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasEqualOrGreaterPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreaterBin
(
int
major
,
int
minor
)
{
return
gpu
FuncTable
()
->
hasEqualOrGreaterBin
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
builtWith
(
FeatureSet
feature_set
)
{
return
deviceInfo
FuncTable
()
->
builtWith
(
feature_set
);
}
bool
cv
::
gpu
::
TargetArchs
::
has
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
has
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasPtx
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasBin
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasBin
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrLessPtx
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasEqualOrLessPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreater
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasEqualOrGreater
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreaterPtx
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasEqualOrGreaterPtx
(
major
,
minor
);
}
bool
cv
::
gpu
::
TargetArchs
::
hasEqualOrGreaterBin
(
int
major
,
int
minor
)
{
return
deviceInfo
FuncTable
()
->
hasEqualOrGreaterBin
(
major
,
minor
);
}
size_t
cv
::
gpu
::
DeviceInfo
::
sharedMemPerBlock
()
const
{
return
deviceInfoFuncTable
()
->
sharedMemPerBlock
();
}
void
cv
::
gpu
::
DeviceInfo
::
queryMemory
(
size_t
&
total_memory
,
size_t
&
free_memory
)
const
{
deviceInfoFuncTable
()
->
queryMemory
(
total_memory
,
free_memory
);
}
...
...
@@ -270,8 +270,8 @@ std::string cv::gpu::DeviceInfo::name() const { return deviceInfoFuncTable()->na
int
cv
::
gpu
::
DeviceInfo
::
multiProcessorCount
()
const
{
return
deviceInfoFuncTable
()
->
multiProcessorCount
();
}
void
cv
::
gpu
::
DeviceInfo
::
query
()
{
deviceInfoFuncTable
()
->
query
();
}
void
cv
::
gpu
::
printCudaDeviceInfo
(
int
device
)
{
gpu
FuncTable
()
->
printCudaDeviceInfo
(
device
);
}
void
cv
::
gpu
::
printShortCudaDeviceInfo
(
int
device
)
{
gpu
FuncTable
()
->
printShortCudaDeviceInfo
(
device
);
}
void
cv
::
gpu
::
printCudaDeviceInfo
(
int
device
)
{
deviceInfo
FuncTable
()
->
printCudaDeviceInfo
(
device
);
}
void
cv
::
gpu
::
printShortCudaDeviceInfo
(
int
device
)
{
deviceInfo
FuncTable
()
->
printShortCudaDeviceInfo
(
device
);
}
#ifdef HAVE_CUDA
...
...
modules/core/src/gpumat_cuda.hpp
View file @
64c94cb2
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