Skip to content

Commit eca7523

Browse files
committed
Merge pull request opencv#6592 from guysoft:fix_6500_fix2
2 parents 4547427 + 0a48b9a commit eca7523

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/OpenCVDetectCUDA.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ if(CUDA_FOUND)
138138
set(OPENCV_CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES} ${ARCH}")
139139
endif()
140140
endforeach()
141+
set(NVCC_FLAGS_EXTRA ${NVCC_FLAGS_EXTRA} -D_FORCE_INLINES)
141142

142143
# Tell NVCC to add PTX intermediate code for the specified architectures
143144
string(REGEX MATCHALL "[0-9]+" ARCH_LIST "${ARCH_PTX_NO_POINTS}")

0 commit comments

Comments
 (0)