CUDA Takeit和CUDA sdk有什么区别 [英] What is the difference between the CUDA tookit and the CUDA sdk

查看:492
本文介绍了CUDA Takeit和CUDA sdk有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ubuntu 14.04上安装CUDA,并且具有Maxwell卡(GTX 9 **系列),并且我认为我已经使用工具包正确安装了所有内容,因为我可以编译示例。但是,我在应该安装SDK的地方读到了这句话(这似乎与sdk 4讨论过)。我不确定工具包和SDK是否不同?当我拥有更高版本的9系列卡时,这是否意味着我正在运行CUDA 6?这是我的nvcc版本

I am installing CUDA on Ubuntu 14.04 and have a Maxwell card (GTX 9** series) and I think I have installed everything properly with the toolkit as I can compile my samples. However, I read that in places that I should install the SDK (This appears to be talked about with the sdk 4). I am not sure if the toolkit and sdk are different? As I have a later 9 series card does that mean I have CUDA 6 running? Here is my nvcc version

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2014 NVIDIA Corporation
Built on Wed_Aug_27_10:36:36_CDT_2014
Cuda compilation tools, release 6.5, V6.5.16

我正在跟踪一本书,我需要包含< cutil.h> ,但是在安装了该文件的任何地方都找不到该文件

I am following a book and I need to include <cutil.h> and I can't find that file in the includes anywhere where I installed it.

我遵循了nvidia提供的指南,因为我做了他们所说的话,这就是为什么我感到困惑的原因 http://developer.download.nvidia.com/compute/cuda/6_5/rel/docs/CUDA_Getting_Started_Linux.pdf

I followed this guide provided by nvidia and as I have done what they say this is why I am confused http://developer.download.nvidia.com/compute/cuda/6_5/rel/docs/CUDA_Getting_Started_Linux.pdf

感谢帮助

推荐答案

CUDA工具包是一个具有不同组件的软件包。主要部分是:

CUDA Toolkit is a software package that has different components. The main pieces are:


  1. CUDA SDK (编译器,NVCC,用于开发CUDA软件的库和CUDA示例)

  2. GUI工具(例如Eclipse Nsight for Linux / OS) X或Windows的Visual Studio Nsight)

  3. Nvidia驱动程序(用于驱动卡的系统驱动程序)

  1. CUDA SDK (The compiler, NVCC, libraries for developing CUDA software, and CUDA samples)
  2. GUI Tools (such as Eclipse Nsight for Linux/OS X or Visual Studio Nsight for Windows)
  3. Nvidia Driver (system driver for driving the card)

它还具有许多其他组件,例如CUDA调试器,探查器,内存检查器等。

It has also many other components such as CUDA-debugger, profiler, memory checker, etc.

您能够编译并运行示例的事实意味着您可以可能已经完全安装了工具包,并且至少具有SDK,驱动程序和示例。

The fact that you are able to compile and run samples means that you probably installed the Toolkit fully and have the SDK, the driver, and the Samples at least.

对于 cutil.h ,使用 find -L在我的CUDA 6.5安装中进行搜索。 -iname cutil.h 没有结果。还在SO上查看其他相关问题,似乎此头文件在CUDA安装中不再存在(自CUDA 5.0起)。但是,查看示例,您会发现正在使用一些较新的实用程序标头,例如 helper_cuda.h 。此类帮助程序应位于操作系统中的 / usr / local / cuda / samples / common / inc 之类的位置。 helper_cuda.h 是我几乎总是包含在CUDA程序中的标头,因为我发现了实用函数,例如 checkCudaErrors()

As for the cutil.h, doing a search in my CUDA 6.5 installation with find -L . -iname "cutil.h" yielded no results. Also looking at other related questions on SO, it seems like this header file does not exist in CUDA installations anymore (since CUDA 5.0). However, looking at the samples, you can find some newer utility headers such as helper_cuda.h being in use. Helpers like these should be located in somewhere like /usr/local/cuda/samples/common/inc in your OS. helper_cuda.h is a header I almost always include in my CUDA programs since I find utility functions such as checkCudaErrors() very useful.

如果您正在看书,我的建议是;尝试编译代码,每当遇到错误提示缺少实用程序功能时,请在 samples /中包含的头文件中进行 grep 搜索common / inc 。您很可能会在那里找到缺少的实用程序功能,然后可以相应地包含必要的标头。

If you are following a book, my recommendation is; try to compile the code, and whenever you get an error saying a utility function is missing, do a grep search in the header files included in samples/common/inc. You will most probably find the missing utility functions there and then you can include the necessary headers accordingly.

这篇关于CUDA Takeit和CUDA sdk有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆