how to include cutil.h in linux
I don't know how to include cutil.h in linux, i know where it is, but I do开发者_开发百科n't know how to include it. Ideas please.
#include <cutil.h>
find out where cutil.h is:
sudo updatedb; locate cutil.h
nvcc -I /usr/local/cuda/include ...
for you
nvcc -I ~/NVIDIA_GPU_Computing/C/common/inc test.cu -o test
Make sure your executable script has the following:
-I/usr/local/cuda/include \
-L/usr/local/cuda/lib64 \
-I/$HOME/NVIDIA_GPU_Computing_SDK/C/common/inc/ \
-L/$HOME/NVIDIA_GPU_Computing_SDK/C/lib -lcutil_x86_64 \
Obviously the assumption is that the SDK is in your home directory.
#include <cutil.h>
精彩评论