[問題] VS2005 如何完整link cuda toolkit4.0 ?

看板C_and_CPP作者時間14年前 (2011/05/25 23:19), 編輯推噓0(006)
留言6則, 3人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) xp32 + VC++ 2005 nV GeForce 9600 GT 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) cuda toolkit4.0 和 sdk4.0 問題(Question): 我試過了CUDAer的方法, http://cudaer.blogspot.com/2008/10/cuda-install.html 使用 http://forums.nvidia.com/index.php?showtopic=30273 中的rule 加裝 CUDA VS2005 Wizard ------基本上ok, 但無法成功build (x) sdk中的範例 (更正: 是Build有過 debugging不行 Orz) (補上: 即使加入 NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\CUDALibraries\bin\win32\Debug NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\bin\win32\Debug 仍會說找不到cutil32D.dll, 建議重新安裝可能可以改善 <--重安裝亦無效) 所以全部砍掉照 HERESY 的步驟重來, 自行link http://ppt.cc/L7s7 不過我還是想試用nV自己釋出的rule 所以在 VC++ Project Settings -> Rule File Search Paths 我加入的是 C:\Program Files\NVIDIA GPU Computing Toolkit \CUDA\v4.0\extras\visual_studio_integration\rules 但這樣 Custom Build Rules...中就找不到是用nvcc.exe 編譯的選項 :( 但如果我都不調動任何參數,也是無法直接編譯執行sdk內附的樣版(template)的 上網查了很多資料, 大都是轉錄 HERESY 的文章 或是只說了照 Driver -> Toolkits -> SDK 安裝便能很簡單在win上執行範例 Orz 請問是否還有我疏漏的文件說明,能明確地指出有哪些是要include或是lib要link (除了很基本的 NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin NVIDIA GPU Computing Toolkit\CUDA\v4.0\include NVIDIA GPU Computing Toolkit\CUDA\v4.0\lib 外, 實在還是很容易東缺西少NVIDIA Corporation\NVIDIA GPU Computing SDK4.0裡面的呀) 及這些官方的rule及demo該如何執行呢? 失敗了很多天,實在沒有頭緒 T_T 先謝過提點的版友了 十分感激! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.249.169.23

05/25 23:23, , 1F
無法 build 但是沒有貼任何錯誤訊息?
05/25 23:23, 1F
感謝您的提醒, 補在文中(黃色mark) 抱歉

05/26 12:51, , 2F
印像中 應該不是說找不到.dll吧 記得是說找不到.lib
05/26 12:51, 2F

05/26 13:30, , 3F
打錯了 是build有過, debugging會出現error messageOrz
05/26 13:30, 3F

05/26 13:31, , 4F
http://ppt.cc/sC8w 找不到dll 只好先放在同個夾裡
05/26 13:31, 4F
※ 編輯: patricia27 來自: 220.135.195.148 (05/26 13:34)

05/26 13:54, , 5F
你把那些丟到system32裡面試試?
05/26 13:54, 5F

05/26 16:03, , 6F
放在system32可以抓得到
05/26 16:03, 6F
文章代碼(AID): #1DtHu4BN (C_and_CPP)