when i compute flow, i encounter the problem of "OpenCV Error: Gpu API call (invalid device function) in call, file /home/lei/opencvqt/opencv2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp, line 361
terminate called after throwing an instance of 'cv::Exception' what(): /home/lei/opencvqt/opencv-2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp:361: error: (-217) invalid device function in function call". I search how to solve it in google, and find most solution is set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -arch compute_20 -code sm_20) in cmakelist.txt. The gpu of my computer is NVIDIA TITAN X, so I amend -arch to compute_61 -code sm_61 according to my gpu, add it to CMakeLists.txt and remake it. But the problem also exists I don't know how to solve it?
when i compute flow, i encounter the problem of "OpenCV Error: Gpu API call (invalid device function) in call, file /home/lei/opencvqt/opencv2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp, line 361 terminate called after throwing an instance of 'cv::Exception' what(): /home/lei/opencvqt/opencv-2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp:361: error: (-217) invalid device function in function call". I search how to solve it in google, and find most solution is set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -arch compute_20 -code sm_20) in cmakelist.txt. The gpu of my computer is NVIDIA TITAN X, so I amend -arch to compute_61 -code sm_61 according to my gpu, add it to CMakeLists.txt and remake it. But the problem also exists I don't know how to solve it?