11

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!

Michael Eilers Smith
  • 8,466
  • 20
  • 71
  • 106

2 Answers2

12

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).

Paul R
  • 208,748
  • 37
  • 389
  • 560
  • Isn't there any other way? It seems the admin hasn't installed the sdk...or has deleted it. Maybe I'll just download and build it myself. Thanks. – Michael Eilers Smith Dec 20 '11 at 23:34
  • You can make your custom deviceQuery in your home directory :) – pQB Dec 21 '11 at 07:39
  • @mieli: if you have nvcc installed then it would be unusual for there to be no SDK, but as you say it may have been deleted – Paul R Dec 21 '11 at 07:54
  • 1
    @PaulR nvcc comes with the CUDA toolkit. The CUDA toolkit and the CUDA SDK are two different things. There are many instances people (mostly those that have been using CUDA for a while), install the toolkit but not the SDK. – Pavan Yalamanchili Dec 22 '11 at 01:00
10

If you have all of Cuda installed, then just run:

nvidia-smi

Can
  • 4,516
  • 6
  • 28
  • 50
Mick_Edward
  • 159
  • 2
  • 5
  • This doesn't tell you stuff like maximum CUDA grid sizes, cpabilities etc. – NikoNyrh Mar 06 '19 at 19:03
  • 1
    Running `nvidia-smi -L` will just list the GPUs. If you don't have the dev kit installed, you can use this information to look up additional specs online. – Aaron Swan Apr 12 '21 at 15:59