error: cuda_runtime.h: No such file or directory 和undefined reference to `cudaSetDevice'
使用cuda的gcc編譯錯誤:
error: cuda_runtime.h: No such file or directory 和undefined reference to `cudaSetDevice’。
解決辦法,載入cuda 的lib。
gcc singleProcess.cpp -o singleProcess -L/usr/local/cuda/lib64 -lcudart -lcuda
或者
g++ singleProcess.cpp -o singleProcess -L/usr/local/cuda/lib64 -lcudart -lcuda
相關推薦
error: cuda_runtime.h: No such file or directory 和undefined reference to `cudaSetDevice'
使用cuda的gcc編譯錯誤: error: cuda_runtime.h: No such file or directory 和undefined reference to `cudaSetDev
fatal error: Python.h: No such file or directory 解決
parrot python error pycrypto python.h [常見錯誤] fatal error: Python.h: No such file or directory環境場景系統: Parrot Linux軟件: 系統python默認版本2.7 PyCharm默認版本P
fatal error: matio.h: No such file or directory
caff nbsp article https details fig onf 1.5 sudo http://blog.csdn.net/zziahgf/article/details/72900948 $ sudo apt-get install libmatio-d
fatal error: pcre.h: No such file or directory
code upd dir ror include class color dev rect /usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or director
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
center ext tor jsb iss install all sdn plugin 裝一臺新服務器環境的時候,裝uwsgi報錯: plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such
ubuntu 安裝 regex模塊時 fatal error: Python.h: No such file or directory
rec err log 模塊 python.h sudo ins 根據 post 原因是 python-dev包沒有安裝 根據Py2還是py3 sudo apt-get install python-dev 或者 sudo apt-get install python3-d
解決 Boost安裝:fatal error: bzlib.h: No such file or directory 問題
++ gpo sku fat .cpp post src lib thread 參考: How to install all the boost development libraries? 解決 Boost安裝:fatal error: bzlib.h: No such
Ubuntu下 fatal error: Python.h: No such file or directory 解決方法
error ID apt overflow AC python3 TE cto fat 參考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such f
安裝MySQLdb模塊遭遇"fatal error: my_config.h: No such file or directory"的處理
fresh nag fir () ron rpm -e 64bit rst col Issue I encountered an error when I run the python script which need to import the modu
Solve fatal error: helper_math.h: No such file or directory
director install nbsp cal oca style color sam col When the ‘fatal error: helper_math.h: No such file or directory‘ occurs, it means th
Centos7.5 PHP7.2 連線sql_server 遇到fatal error: sql.h: No such file or directory
FreeTD的安裝過程這裡就不寫,以免囉嗦。 下面要講的是PHP的sql server 拓展安裝。 php5.6等老版本預設帶mssql的擴充套件,但php7.1以上就沒有,所以需要手動下載並編譯。 pdo_sqlsrv擴充套件包 http://pecl.php.net/pac
darknet cuda_runtime.h: No such file or directory
darknet cuda_runtime.h: No such file or directory 這個錯誤出現在darknet編譯(make)的時候報錯了,這時候應該注意一下,檢視makefile中對應cuda的路徑 為:/usr/local/cuda/include/ 而我的cuda
COCO API: fatal error: Python.h: No such file or directory
我的系統為ubuntu 16.04 今天我在安裝tensorflow objection detection api的cocoapi的時候出現了下面的問題: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstr
cffi 安裝報錯“c/_cffi_backend.oc/_cffi_backend.c:15:17: error: ffi.h: No such file or directory”問題
cffi安裝問題 環境:powerlinux6.5-64 安裝: 1. 解壓cffi-1.11.5.tar.gz 2. 進入cffi目錄 cd cffi-1.11.5 python setup.py install 報錯資訊如下:
caffe編譯:fatal error: pyconfig.h: No such file or directory #include "pyconfig.h“編譯protobuf
sudo make clean sudo make all -j8 報錯 CXX tools/caffe.cpp In file included from /usr/include/boost/python/detail/prefix.hpp:13:0,
caffe安裝:cuda_runtime.h: No such file or directory
Hi guys need some help! I have this error when trying to install caffe CXX src/caffe/parallel.cpp src/caffe/parallel.cpp:2:26: fatal
解決fatal error: Python.h: No such file or directory
在ubuntu14.04 下安裝python的 netifaces包時遇到fatal error: Python.h: No such file or directory問題 首先檢視/user/include/python2.x目錄,是否包含Python.h,如果有的話可能是pyth
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: No such file or directory
再次編譯,報錯:src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory #include "hdf5.h"記得上面已經安裝了hdf5-devel,怎
linux Ubuntu C++:“fatal error: iostream.h: No such file or directory ”
所以,新的標準是:#include <iostream> //標準輸入輸出流 using namespace std; (因為iostream宣告在std中,故而要加上這句,除非你不用庫函式,否則錯誤); 很多編譯器都同時支援這兩種標頭檔案形式,更好的當然是標準標頭檔案。至於為什麼不廢除非標準
caffe安裝問題——fattal error nccl.h no such file or directory
問題 In file included from ./include/caffe/parallel.hpp:19:0, from ./include/caffe/caffe.hpp:13, from tools/ca