為什麼這篇CUDA版本 差異鄉民發文收入到精華區:因為在CUDA版本 差異這個討論話題中,有許多相關的文章在討論,這篇最有參考價值!作者issuemylove (skill)看板C_and_CPP標題[問題] cuda建置問題時間M...
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC pro 2012
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
CUDA
問題(Question):
最近實驗室要跑學長的碩論程式,該專案是2010年時寫的(vc2005)
其中程式碼有使用GPGPU cuda加速的部分
依照官網所說的 3.4節中有將一個專案使用cuda的功能
http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-microsoft-windows
也參考的一些網頁,但就是無法成功編譯成功 (sample code有編譯成功)
估計是哪個環節弄不對...搞了半天也弄不出來
想詢問我的做法是否有疏漏的環節呢?
附上Cuda相關設定(圖)
C/C++ -> 一般 -> 其它include目錄
https://dl.dropboxusercontent.com/u/110205128/C%2B%2B_INCLUDE.png

CUDA C/C++ -> CUDA Toolkit Custom Dir
https://dl.dropboxusercontent.com/u/110205128/CUDA_C_C%2B%2B_Common.png

連結器 -> 輸入 -> 其它相依性
https://dl.dropboxusercontent.com/u/110205128/linker.png

錯誤結果(Wrong Output):
https://dl.dropboxusercontent.com/u/110205128/error.png

https://dl.dropboxusercontent.com/u/110205128/error1.png

https://dl.dropboxusercontent.com/u/110205128/error_2.png

程式碼(Code):(請善用置底文網頁, 記得排版)
有使用到的標頭檔 "cutil.h"
補充說明(Supplement):
另有以上全部圖片一次下載壓縮檔
https://dl.dropboxusercontent.com/u/110205128/all.zip
謝謝各位大大的幫助
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.169.92.241
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1420454491.A.73C.html
原先沒有想到後面版本不支援cutil.h標頭的問題QQ
找到一篇關於cutil.h 的問題
http://stackoverflow.com/questions/14919613
是說版本太舊5.0以後的不支援
需要下載較舊的sdk版本然後編譯
現在只怕弄好cutil.h標頭檔後
還有其它問題..
※ 編輯: issuemylove (118.169.92.241), 01/06/2015 10:37:49