开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜