Skip to content
Advertisement

How do I get my CUDA specs on a Linux machine?

I’m accessing a remote machine that has a good nVidia card for CUDA computing, but I can’t find a way to know which card it uses and what are the CUDA specs (version, etc.). I used the “lspci” command on the terminal, but there is no sign of a nvidia card. I’m pretty sure it has a nVidia card, and nvcc seems to be installed.

But I really want to figure out the card and CUDA specs. Any ideas?

Thanks!

Advertisement

Answer

If you can find where the CUDA SDK directory has been installed then you can just run the deviceQuery example which will tell you all you need to know and more. The executable should be at $(SDK)/C/bin/linux/release/deviceQuery – if it’s not there then you may need to build the samples first:

$ cd $(SDK)
$ make
$ ./C/bin/linux/release/deviceQuery

The CUDA SDK directory is typically named NVIDIA_GPU_Computing_SDK (more recent CUDA versions) or just NVIDIA_CUDA_SDK (older CUDA versions).

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement