deviceQuery question


I recently installed cuda 9.2.
Everything seems to work fine. Thanks for the great documentation btw :)
So i’d like to verify that it is actually working well.

So far I’ve tested :
#gcc deviceQuery

–> but I have a compilation error…

That’s not how you compile it.

Use the provided makefile in


thanks for you quick answer.

if I understand correctly, I just use as follow ?


you would do:


and if you are doing this in the location I suggested, you would want to do:

sudo make -k

it will take a while to complete, because it is compiling most of the sample codes, not just deviceQuery

how to get deviceQuery.exe in windows 10?

Install Visual Studio, then install CUDA, then build the sample project:

Is there some other tools that gives similar output? since I’m not particularly interested into cuda development

thanks for your answsers.

in my computer
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.2\bin\win64\Release
I can’t find deviceQuery.exe

You have to build it first.

in the doc say
CUDA Samples include sample programs in both source and compiled form. To verify a correct configuration of the hardware and software, it is highly recommended that you run the deviceQuery program located at
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.2\bin\win64\Release

or how can i build it?