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
a66fd527
Commit
a66fd527
authored
Oct 15, 2018
by
jasjuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for latest Turing gpu and cuda 10
parent
f8a27d26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+6
-2
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
a66fd527
...
...
@@ -81,6 +81,8 @@ if(CUDA_FOUND)
set
(
__cuda_arch_bin
"6.0 6.1"
)
elseif
(
CUDA_GENERATION STREQUAL
"Volta"
)
set
(
__cuda_arch_bin
"7.0"
)
elseif
(
CUDA_GENERATION STREQUAL
"Turing"
)
set
(
__cuda_arch_bin
"7.5"
)
elseif
(
CUDA_GENERATION STREQUAL
"Auto"
)
execute_process
(
COMMAND
"
${
CUDA_NVCC_EXECUTABLE
}
"
${
CUDA_NVCC_FLAGS
}
"
${
OpenCV_SOURCE_DIR
}
/cmake/checks/OpenCVDetectCudaArch.cu"
"--run"
WORKING_DIRECTORY
"
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeTmp/"
...
...
@@ -105,7 +107,7 @@ if(CUDA_FOUND)
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
NOT _nvcc_res EQUAL 0
)
message
(
STATUS
"Automatic detection of CUDA generation failed. Going to build for all known architectures."
)
set
(
__cuda_arch_bin
"5.3 6.2 7.0"
)
set
(
__cuda_arch_bin
"5.3 6.2 7.0
7.5
"
)
else
()
set
(
__cuda_arch_bin
"
${
_nvcc_out
}
"
)
string
(
REPLACE
"2.1"
"2.1(2.0)"
__cuda_arch_bin
"
${
__cuda_arch_bin
}
"
)
...
...
@@ -114,8 +116,10 @@ if(CUDA_FOUND)
else
()
if
(
${
CUDA_VERSION
}
VERSION_LESS
"9.0"
)
set
(
__cuda_arch_bin
"2.0 3.0 3.5 3.7 5.0 5.2 6.0 6.1"
)
else
(
)
else
if
(
${
CUDA_VERSION
}
VERSION_LESS
"10.0"
)
set
(
__cuda_arch_bin
"3.0 3.5 3.7 5.0 5.2 6.0 6.1 7.0"
)
else
()
set
(
__cuda_arch_bin
"3.0 3.5 3.7 5.0 5.2 6.0 6.1 7.0 7.5"
)
endif
()
endif
()
endif
()
...
...
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