Oct 13, 2009

CUDA Note [0] = "How to integrate with VC ?";

1. How to build "*.cu" in VC :
  • Find “Cuda.Rules” in \\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\
  • Copy “Cuda.Rules” to \\MSVS8\VC\VCProjectDefaults\
  • Open VC solution.
  • Right click your “project” and select “Custom Build Rules”.
  • Check “CUDA Build Rule v#.#.#".
  • Click ok.
  • Right click “*.cu” file in solution explorer.
  • Select “CUDA Build Rule v#.#.#” in option “Tool”.
  • Then vc can build "*.cu" file in your project.
2. How to high light *.cu syntax in VC :
  • Go to Options of Tools in VC.
  • Check "File Extension" of Text Editor.
  • Add "cu" in "Extension" edit box and select Editor.
  • Click OK and reopen VC.
  • Now the high light rule you selected is applied.
  • I use VC++ syntax hight light to edit *.cu.

No comments: