Fork me on GitHub

2/25/2010

不必將 CUDA Project 放到 SDK 資料夾下的方法

我忘記補充,我今天早上搞定CUDA在VC裡的設定, 就不需要把程式放在
“C:\Program Files\NVIDIA\NVIDIA GPU Computing SDK\C\src\”

安裝完CUDA SDK後
1. 從[C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common]
copy Cuda.Rules to
[C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults]

2.開一個專案,在project按右鍵選custom build rules
勾選CUDA Build Rule

3. VC Option -> VC++ Directories -> include files
add [C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc]

4. VC Option -> VC++ Directories -> include files
add [C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\lib]

5.我的電腦->系統內容->環境參數->系統變數
CUDA_BIN_PATH [C:\CUDA\bin]
CUDA_INC_PATH [C:\CUDA\include]
CUDA_LIB_PATH [C:\CUDA\lib]

...

No comments:

Post a Comment