baidu_32394411 2018-01-10 08:00 采纳率: 0%
浏览 1411
已结题

cuda加速的問題,opencv3.1.0+cuda8.0

使用的是opencv3.1.0+cuda8.0,但是make可以,run出錯。

nvidia@tegra-ubuntu:~$ cd project_wly
nvidia@tegra-ubuntu:~/project_wly$ cmake .
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/project_wly
nvidia@tegra-ubuntu:~/project_wly$ make
Scanning dependencies of target project_wly
[ 50%] Building CXX object CMakeFiles/project_wly.dir/project_wly.cpp.o
[100%] Linking CXX executable project_wly
[100%] Built target project_wly
nvidia@tegra-ubuntu:~/project_wly$ ./project_wly
OpenCV Error: Gpu API call (invalid device symbol) in loadUMax, file /home/nvidia/opencv_3.1/opencv-3.1.0/modules/cudafeatures2d/src/cuda/orb.cu, line 148
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nvidia/opencv_3.1/opencv-3.1.0/modules/cudafeatures2d/src/cuda/orb.cu:148: error: (-217) invalid device symbol in function loadUMax

Aborted (core dumped)
nvidia@tegra-ubuntu:~/project_wly$

求教各位大神,怎麼解決這個問題?

  • 写回答

1条回答 默认 最新

  • threenewbee 2018-01-10 10:12
    关注

    http://blog.csdn.net/sysysty/article/details/70154109
    如果你的程序被证明是可以运行的,那么建议你用新的卡(比如gtx1000系列),稳定的cuda驱动(cuda 7.5)

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算