user1192151
user1192151

Reputation:

CUDA bandwidthTest.cu

I want to compile and run the bandwidthTest.cu in the CUDA SDK. I face the two following errors when I compile it with:

nvcc -arch=sm_20 bandwidthTest.cu -o bTest

cutil_inline.h: no such file or directory
shrUtils.h: no such file or directory

How can I solve this problem?

Upvotes: 0

Views: 1057

Answers (3)

Dennis C Furlaneto
Dennis C Furlaneto

Reputation: 365

Find the path to cutil_inline.h and the path to shrUtils.h and put them in the compilation line in the following way:

nvcc -Ipath to cutil_inline.h -Ipath to shrUtils.h -arch=sm_20 bandwidthTest.cu -o bTest

Also, consider using a makefile for the compilation in case you aren't.

Upvotes: 0

Roger Dahl
Roger Dahl

Reputation: 15734

Add the current directory to your include search path.

nvcc -I. -arch=sm_20 bandwidthTest.cu -o bTest

Upvotes: 2

mszigetihu
mszigetihu

Reputation: 51

Probably the two header files you tried to #include are not available in that directory. If you use the Visual Studio IDE, you can see the red outlining.

Upvotes: 0

Related Questions