[問題] VS2005 如何完整link cuda toolkit4.0 ?
開發平台(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
05/25 23:23, 1F
感謝您的提醒, 補在文中(黃色mark) 抱歉
→
05/26 12:51, , 2F
05/26 12:51, 2F
→
05/26 13:30, , 3F
05/26 13:30, 3F
→
05/26 13:31, , 4F
05/26 13:31, 4F
※ 編輯: patricia27 來自: 220.135.195.148 (05/26 13:34)
→
05/26 13:54, , 5F
05/26 13:54, 5F
→
05/26 16:03, , 6F
05/26 16:03, 6F