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
156155ad
Commit
156155ad
authored
Jun 28, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1018 from jet47:cuda-5.5-arm
parents
3b78fe26
371a9cd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
12 deletions
+44
-12
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+36
-4
CMakeLists.txt
modules/gpu/CMakeLists.txt
+8
-8
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
156155ad
...
...
@@ -29,10 +29,42 @@ if(CUDA_FOUND)
if
(
${
CUDA_VERSION
}
VERSION_LESS
"5.5"
)
find_cuda_helper_libs
(
npp
)
else
()
find_cuda_helper_libs
(
nppc
)
find_cuda_helper_libs
(
nppi
)
find_cuda_helper_libs
(
npps
)
set
(
CUDA_npp_LIBRARY
${
CUDA_nppc_LIBRARY
}
${
CUDA_nppi_LIBRARY
}
${
CUDA_npps_LIBRARY
}
)
# hack for CUDA 5.5
if
(
${
CMAKE_SYSTEM_PROCESSOR
}
STREQUAL
"arm"
)
unset
(
CUDA_TOOLKIT_INCLUDE CACHE
)
unset
(
CUDA_CUDART_LIBRARY CACHE
)
unset
(
CUDA_cublas_LIBRARY CACHE
)
unset
(
CUDA_cufft_LIBRARY CACHE
)
unset
(
CUDA_npp_LIBRARY CACHE
)
if
(
SOFTFP
)
set
(
cuda_arm_path
"
${
CUDA_TOOLKIT_ROOT_DIR
}
/targets/armv7-linux-gnueabi"
)
else
()
set
(
cuda_arm_path
"
${
CUDA_TOOLKIT_ROOT_DIR
}
/targets/armv7-linux-gnueabihf"
)
endif
()
set
(
CUDA_TOOLKIT_INCLUDE
"
${
cuda_arm_path
}
/include"
CACHE PATH
"include path"
)
set
(
CUDA_INCLUDE_DIRS
${
CUDA_TOOLKIT_INCLUDE
}
)
set
(
cuda_arm_library_path
"
${
cuda_arm_path
}
/lib"
)
set
(
CUDA_CUDART_LIBRARY
"
${
cuda_arm_library_path
}
/libcudart.so"
CACHE FILEPATH
"cudart library"
)
set
(
CUDA_LIBRARIES
${
CUDA_CUDART_LIBRARY
}
)
set
(
CUDA_cublas_LIBRARY
"
${
cuda_arm_library_path
}
/libcublas.so"
CACHE FILEPATH
"cublas library"
)
set
(
CUDA_cufft_LIBRARY
"
${
cuda_arm_library_path
}
/libcufft.so"
CACHE FILEPATH
"cufft library"
)
set
(
CUDA_nppc_LIBRARY
"
${
cuda_arm_library_path
}
/libnppc.so"
CACHE FILEPATH
"nppc library"
)
set
(
CUDA_nppi_LIBRARY
"
${
cuda_arm_library_path
}
/libnppi.so"
CACHE FILEPATH
"nppi library"
)
set
(
CUDA_npps_LIBRARY
"
${
cuda_arm_library_path
}
/libnpps.so"
CACHE FILEPATH
"npps library"
)
set
(
CUDA_npp_LIBRARY
"
${
CUDA_nppc_LIBRARY
}
;
${
CUDA_nppi_LIBRARY
}
;
${
CUDA_npps_LIBRARY
}
"
CACHE STRING
"npp library"
)
else
()
unset
(
CUDA_npp_LIBRARY CACHE
)
find_cuda_helper_libs
(
nppc
)
find_cuda_helper_libs
(
nppi
)
find_cuda_helper_libs
(
npps
)
set
(
CUDA_npp_LIBRARY
"
${
CUDA_nppc_LIBRARY
}
;
${
CUDA_nppi_LIBRARY
}
;
${
CUDA_npps_LIBRARY
}
"
CACHE STRING
"npp library"
)
endif
()
endif
()
if
(
WITH_NVCUVID
)
...
...
modules/gpu/CMakeLists.txt
View file @
156155ad
...
...
@@ -43,6 +43,14 @@ if(HAVE_CUDA)
ocv_cuda_compile
(
cuda_objs
${
lib_cuda
}
${
ncv_cuda
}
)
set
(
cuda_link_libs
${
CUDA_LIBRARIES
}
${
CUDA_npp_LIBRARY
}
)
if
(
HAVE_CUFFT
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_cufft_LIBRARY
}
)
endif
()
if
(
HAVE_CUBLAS
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_cublas_LIBRARY
}
)
endif
()
if
(
WITH_NVCUVID
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_CUDA_LIBRARY
}
${
CUDA_nvcuvid_LIBRARY
}
)
...
...
@@ -71,14 +79,6 @@ ocv_set_module_sources(
ocv_create_module
(
${
cuda_link_libs
}
)
if
(
HAVE_CUDA
)
if
(
HAVE_CUFFT
)
CUDA_ADD_CUFFT_TO_TARGET
(
${
the_module
}
)
endif
()
if
(
HAVE_CUBLAS
)
CUDA_ADD_CUBLAS_TO_TARGET
(
${
the_module
}
)
endif
()
install
(
FILES src/nvidia/NPP_staging/NPP_staging.hpp src/nvidia/core/NCV.hpp
DESTINATION
${
OPENCV_INCLUDE_INSTALL_PATH
}
/opencv2/
${
name
}
COMPONENT main
)
...
...
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