开发者

how to include cutil.h in linux

开发者 https://www.devze.com 2023-01-16 21:49 出处:网络
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>

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

精彩评论

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

关注公众号