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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置