cmake设置
CUDA_ARCH_BIN 3.2 5.2
CUDA_ARCH_PTX 3.2 5.2
否则报一下错误:
OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=18, file=opencv-3.1.0/modules/cudalegacy/src/cuda/NPP_staging.cu, line=338) in NCVDebugOutputHandler
Device 0: "NVIDIA Tegra X1"
CUDA Driver Version: 7.5
CUDA Capability Major/Minor version number: 5.3