I tried to compile the current master branch of OpenCV. The compilation runs fine, but for some functions that I want to use I get the following error:
OpenCV Error: Gpu API call (invalid argument) in bindTexture, file /home/nvidia/opencv/modules/core/include/opencv2/core/cuda/common.hpp, line 102 terminate called after throwing an instance of 'cv::Exception' what(): /home/nvidia/opencv/modules/core/include/opencv2/core/cuda/common.hpp:102: error: (-217) invalid argument in function bindTexture
This happens when I call
I compiled OpenCV with
cmake .. -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DCUDA_ARCH_BIN=6.2
The same code is working on TX1 with same CUDA version and same OpenCV version.
Has anyone compiled a working OpenCV with cuda with the TX2 so far?
Thank you for any suggestions
P.S.: I think there should be a sticky “OpenCV Compilation Guide” in this board.