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
0af5356d
Commit
0af5356d
authored
Jan 28, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated code in case of the compilation without CUDA
parent
575fd1fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
initialization.cpp
modules/gpu/src/initialization.cpp
+2
-8
No files found.
modules/gpu/src/initialization.cpp
View file @
0af5356d
...
...
@@ -130,18 +130,12 @@ CV_EXPORTS bool cv::gpu::TargetArchs::hasEqualOrGreaterBin(int major, int minor)
CV_EXPORTS
int
cv
::
gpu
::
getCudaEnabledDeviceCount
()
{
return
0
;
}
CV_EXPORTS
void
cv
::
gpu
::
setDevice
(
int
)
{
throw_nogpu
();
}
CV_EXPORTS
int
cv
::
gpu
::
getDevice
()
{
throw_nogpu
();
return
0
;
}
cv
::
gpu
::
DeviceInfo
::
DeviceInfo
()
{
throw_nogpu
();
}
cv
::
gpu
::
DeviceInfo
::
DeviceInfo
(
int
)
{
throw_nogpu
();
}
string
cv
::
gpu
::
DeviceInfo
::
name
()
const
{
throw_nogpu
();
return
""
;
}
int
cv
::
gpu
::
DeviceInfo
::
major
()
const
{
throw_nogpu
();
return
0
;
}
int
cv
::
gpu
::
DeviceInfo
::
minor
()
const
{
throw_nogpu
();
return
0
;
}
int
cv
::
gpu
::
DeviceInfo
::
multiProcessorCount
()
const
{
throw_nogpu
();
return
0
;
}
size_t
cv
::
gpu
::
DeviceInfo
::
freeMemory
()
const
{
throw_nogpu
();
return
0
;
}
size_t
cv
::
gpu
::
DeviceInfo
::
totalMemory
()
const
{
throw_nogpu
();
return
0
;
}
bool
cv
::
gpu
::
DeviceInfo
::
has
(
cv
::
gpu
::
GpuFeature
)
const
{
throw_nogpu
();
return
false
;
}
bool
cv
::
gpu
::
DeviceInfo
::
isCompatible
()
const
{
throw_nogpu
();
return
false
;
}
void
cv
::
gpu
::
DeviceInfo
::
query
()
const
{
throw_nogpu
();
}
void
cv
::
gpu
::
DeviceInfo
::
queryMemory
(
size_t
,
size_t
)
const
{
throw_nogpu
();
}
void
cv
::
gpu
::
DeviceInfo
::
query
()
{
throw_nogpu
();
}
void
cv
::
gpu
::
DeviceInfo
::
queryMemory
(
size_t
&
,
size_t
&
)
const
{
throw_nogpu
();
}
#else
/* !defined (HAVE_CUDA) */
...
...
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