Cuda9 0以上安裝opencv3 0以上

2021-08-20 21:23:35 字數 1136 閱讀 7327

問題一:由於cuda9.0以上不支援opencv2.0架構,安裝時會報錯

cmake error: the following variables are used in this project, but they are set to notfound.

需要修改幾個檔案

1) findcuda.cmake  (opencv-2.4.13/cmake/findcuda.cmake)

2) opencvdetectcuda.cmake

cuda_fp16.h (opencv\modules\cudev\include\opencv2\cudev\common.hpp)

參考:問題二:linux環境下裝opencv3 缺少ippicv問題

$ ipp_file=ippicv_2017u2_lnx_intel64_20170418.tgz&&

> ipp_hash=$(md5sum ../$ipp_file | cut -d" "-f1) &&

> ipp_dir=.cache/ippicv &&

> mkdir -p $ &&

>

sudo

cp ../$ipp_file $ipp_dir/$ipp_hash-$ipp_file

參考:

問題三:unsupported gpu architecture'compute_11'解決方法

cmake -d

cmake_build_type

=release

-dcmake_install_prefix

=/usr/

local

-dcuda_generation

=kepler

..參考:

修改檔案/home/liuyujun/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp

直接新增以下標頭檔案,刪除帶有上述error的語句

#include

#include

Ubuntu系統下安裝CUDA9 0

本文件是安裝cuda9.0的deb版本。是本人今天晚上剛剛安裝上cuda9.0後總結的,親測有效。首先,在終端 ctri alt t 輸入 nvidia settings檢視驅動是否是nvidia。如果是直接進行分界線下面的內容。如果不是,就在system settings software upd...

同時安裝CUDA8 0和CUDA9 0

tensorflow1.5版本竟然不支援cuda8.0了 解除安裝是不可能解除安裝的 建議選擇使用.run檔案安裝,因為使用.deb可能會將已經安裝的較新的顯示卡驅動替換。對於cudnn7.0的安裝方式選項,我選擇的是cudnn v7.0.5 library for linux,對應於cudnn 9...

CUDA 9 0在Ubuntu上的安裝

在終端執行如下命令 sudo dpkg i cuda repo ubuntu1604 9 0 local 9.0.176 1 amd64.deb sudo apt key add var cuda repo 7fa2af80.pub 執行完上一句指令後,末尾會有此指令的提示 sudo apt get...