CUDA Toolkit is a software package that has various components. The main parts:
- CUDA SDK (compiler, NVCC, CUDA software development libraries and CUDA samples)
- GUI tools (such as Eclipse Nsight for Linux / OS X or Visual Studio Nsight for Windows)
- Nvidia driver (system driver for driving a card)
It also has many other components, such as a CUDA debugger, profiler, memory controller, etc.
The fact that you can compile and run the samples means that you probably have fully installed the Toolkit and at least have an SDK, driver, and samples.
Regarding cutil.h , doing a search in my CUDA 6.5 installation using find -L . -iname "cutil.h" find -L . -iname "cutil.h" failed. Also looking at other related questions about SO, it seems that this header file no longer exists in CUDA installations (since CUDA 5.0). However, looking at the samples, you can find several new utility headers, for example helper_cuda.h . Helpers like these should be located somewhere like /usr/local/cuda/samples/common/inc on your OS. helper_cuda.h is a header that is almost always included in my CUDA programs, as I find useful functions like checkCudaErrors() very useful.
If you follow the book, my recommendation; try compiling the code, and whenever you get an error message if the utility function is missing, search for grep in the header files included in samples/common/inc . You will most likely find the missing features of the utility, and then you can include the necessary headers accordingly.
source share