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
7c77787c
Commit
7c77787c
authored
Nov 25, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
npp version check
parent
3239d16c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
precomp.hpp
modules/gpu/src/precomp.hpp
+6
-0
CMakeLists.txt
samples/gpu/CMakeLists.txt
+1
-1
No files found.
modules/gpu/src/precomp.hpp
View file @
7c77787c
...
...
@@ -67,6 +67,12 @@
#include "opencv2/gpu/stream_accessor.hpp"
#include "npp.h"
#define NPP_MINIMUM_REQUIRED_VERSION 3216
#if (NPP_VERSION_MAJOR*1000+NPP_VERSION_MINOR*100+NPP_VERSION_BUILD < NPP_MINIMUM_REQUIRED_VERSION)
#error "Insufficient NPP version, please update it."
#endif
#else
/* defined(HAVE_CUDA) */
static
inline
void
throw_nogpu
()
{
CV_Error
(
CV_GpuNotSupported
,
"The library is compilled without GPU support"
);
}
...
...
samples/gpu/CMakeLists.txt
View file @
7c77787c
...
...
@@ -27,7 +27,7 @@ if (BUILD_EXAMPLES)
set
(
the_target
"example_gpu_
${
name
}
"
)
add_executable
(
${
the_target
}
${
srcs
}
)
set_target_properties
(
${
the_target
}
PROPERTIES
OUTPUT_NAME
"
${
name
}
"
OUTPUT_NAME
"
${
name
}
_gpu
"
PROJECT_LABEL
"(EXAMPLE_GPU)
${
name
}
"
)
add_dependencies
(
${
the_target
}
opencv_core opencv_flann opencv_imgproc opencv_highgui
opencv_ml opencv_video opencv_objdetect opencv_features2d
...
...
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