English 中文(简体)
• 如何在视力演播室增加用于“CUDA”项目的通用/倍数?
原标题:How to add common/inc folder to a CUDA project at Visual Studio?

我愿利用CUDA开发计算算法。 视力演播室2010年末版。 在我安装了所有计算工具和带有样本的SDK之后,我在项目类型“NVIDIA->CUDA->CUDA 4.0 维持时间”下选择启动CUDA项目。

问题在于,我可以不包含方案Data/NVIDIA公司/NVIDIAGPU电子计算公司/SDK 4.0/Common/inc的源文档,以便与样本一起工作,使用GL目录下的头号档案等。 I m 试图使用“包括名录”将其包括在内。 我再说一遍,但是它没有工作。 视觉演播室没有看到这些档案。

我如何利用这些档案? 我在获取这些档案时应该怎么样?

我根据共同目录汇编了切割项目,在试图汇编样本时解决了一些错误问题,但对于上述问题没有用处。

问题回答

这些是我为将《世界人权宣言》安装到2010年《维也纳宣言和行动纲领》所采取的步骤。

  1. 创建你选择的正常项目。 (例如,获胜32)

  2. 正确点击该项目并选择建立习俗。 如果你安装了这些工具,SDK正确无误,你就应当看到CUDA4.0指标。 (如果你的项目变得腐败,你可能还必须替换你现有的进口货物。)

    <ImportGroup Label="ExtensionSettings">
              <Import Project="$(VCTargetsPath)BuildCustomizationsCUDA 4.0.props"/>
        </ImportGroup>
    
  3. 如果在您的VC++中不增加(CUDA_INC_PATH)美元,那么你就应当铺设道路。

  4. Add cudart.lib to your Linker additional libraries ensuring that $(CudaToolkitLibDir) is added to the paths.
  5. Create a file and give it the .cu file extension. Right click the file, go to properties and select the Item Type as "Cuda C/C++".

一旦完成使命,你就可以在2010年VS.汇编Cuda。 我本可以忘记一些步骤,或许需要绕开轨道,如果我明天回想的话,我会把这个职位ed。





相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签